String consoleLevel = System.getProperty(consoleLogLevelProperty, "DEBUG");
String fileLevel = System.getProperty(fileLogLevelProperty, "DEBUG");
String fileName = System.getProperty(filenameLogLevelProperty);
// console appender level configuration
ConsoleAppender consoleAppender = (ConsoleAppender) Logger.getRootLogger().getAppender(
CONSOLE_APPENDER_NAME);
if (consoleAppender != null) {
Level consoleThreshold = Level.toLevel(consoleLevel, Level.DEBUG);
consoleAppender.setThreshold(consoleThreshold);
LOG.debug("Console LOG level set to " + consoleThreshold);
}
if (fileName != null) {
PatternLayout layout = new PatternLayout("%d{ABSOLUTE} %-5p %x %m%n");