if (pattern == null) {
pattern = "%-5r[%24F:%-3L:%-5p]%x %m%n";
}
PatternLayout layout = new PatternLayout(pattern);
layout.activateOptions();
RollingFileAppender newAppender = null;
try {
newAppender = new RollingFileAppender(layout, logFile, true);
} catch (IOException e) {