com.github.gkutiel.log.LogClient Maven / Gradle / Ivy
package com.github.gkutiel.log;
import static java.util.logging.Level.ALL;
import static java.util.logging.Logger.getLogger;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.github.gkutiel.log.LogServerHandler;
public enum LogClient {
;
public static Logger get(final String host) {
return get(host, ALL);
}
public static Logger get(final String host, final Level level) {
final Logger log = getLogger("log-server");
log.addHandler(new LogServerHandler(host, level));
return log;
}
}