com.googlecode.openbox.server.log.monitor.LogPrintHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ssh Show documentation
Show all versions of ssh Show documentation
This is remote linux SSH module
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("###################################################");
}
}
}