how to use create object of consoleappender and set the level and writer in log4j2

后端 未结 0 945
攒了一身酷
攒了一身酷 2021-01-07 02:28

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题