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

com.googlecode.openbox.server.log.monitor.LogPrintHandler Maven / Gradle / Ivy

The newest version!
package com.googlecode.openbox.server.log.monitor;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class LogPrintHandler implements ServerLogHandler {

	private static final Logger logger = LogManager.getLogger();

	@Override
	public void action(T t, String logs) {
		if (logger.isInfoEnabled()) {
			logger.info("###################################################");
			logger.info(logs);
			logger.info("###################################################");
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy