ConsoleAppender appender = new ConsoleAppender(); appender.setLayout(new PatternLayout("%d{dd MMM yyyy HH:mm:ss,SSS} %10r %5p [%10t] %-20c - %5x %m%n")); appender.