All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.gkutiel.log.LogClient Maven / Gradle / Ivy

There is a newer version: 0.1-RELEASE
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy