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

net.hycube.simulator.log.LogHelper Maven / Gradle / Ivy

Go to download

HyCube Simulator is a container running multiple HyCube node instances, providing an interface for performing operations on individual nodes.

There is a newer version: 1.0.5
Show newest version
package net.hycube.simulator.log;

public final class LogHelper {

	protected static final String HYCUBE_PACKAGE = "net.hycube";
	protected static final String USER_LOG_SUFFIX = "log.user";
	protected static final String MESSAGES_LOG_SUFFIX = "log.messages";
	protected static final String DEV_LOG_SUFFIX = "log.dev";
	
	protected static org.apache.commons.logging.Log userLog = org.apache.commons.logging.LogFactory.getLog(HYCUBE_PACKAGE + "." + USER_LOG_SUFFIX);
	protected static org.apache.commons.logging.Log msgLog = org.apache.commons.logging.LogFactory.getLog(HYCUBE_PACKAGE + "." + MESSAGES_LOG_SUFFIX);
	protected static org.apache.commons.logging.Log devLog = org.apache.commons.logging.LogFactory.getLog(HYCUBE_PACKAGE + "." + DEV_LOG_SUFFIX);
	
	protected LogHelper() {}

	public static org.apache.commons.logging.Log getUserLog() {
		return userLog;
	}
	
	public static org.apache.commons.logging.Log getMessagesLog() {
		return msgLog;
	}
	
	public static org.apache.commons.logging.Log getDevLog() {
		return devLog;
	}
	
	public static org.apache.commons.logging.Log getDevLog(Class clazz) {
		return org.apache.commons.logging.LogFactory.getLog(HYCUBE_PACKAGE + "." + DEV_LOG_SUFFIX + "." + clazz.getName());
	
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy