How do i modify a log format with Simple Formatter?

前端 未结 2 407
野性不改
野性不改 2020-12-22 08:35

I\'ve tried adding this line into logging.properties, but the output doesn\'t change

java.util.logging.SimpleFormatter.format=\'%1$tY-%1$tm-%1$td %1$tH:%1$tM:%

2条回答
  •  囚心锁ツ
    2020-12-22 08:45

    https://logging.apache.org/log4j/2.0/manual/messages.html refer this. have very good expanation

提交回复
热议问题