How to enable Logger.debug() in Log4j

前端 未结 8 1933
谎友^
谎友^ 2020-12-07 18:53

While trying to execute the following lines only the last two statements are displayed(\"Here is some ERROR\" and \"Here is some FATAL\") and the first three statements are

8条回答
  •  情书的邮戳
    2020-12-07 19:12

    You need to set the logger level to the lowest you want to display. For example, if you want to display DEBUG messages, you need to set the logger level to DEBUG.

    The Apache log4j manual has a section on Configuration.

提交回复
热议问题