use of com.creditease.agent.log.PLogger.SimpleLogFormatter in project uavstack by uavorg.
the class SystemLogger method newLogger.
private static ISystemLogger newLogger(String logName, String rootpath, String logFileFormat, String logLevel, Boolean debugEnable, int bufferSize, int fileSize, int fileCountLimit) {
ISystemLogger mainLog = new SystemLogger(logName, rootpath, logFileFormat, bufferSize, fileSize, fileCountLimit, false, new SimpleLogFormatter());
// set log level
if (null == logLevel) {
logLevel = "INFO";
}
mainLog.setLevel(LogLevel.valueOf(logLevel));
// set debug enable
if (null == debugEnable) {
debugEnable = false;
}
mainLog.enableDebug(debugEnable);
return mainLog;
}
Aggregations