Disabling Spring log, to have readable logs

前端 未结 5 1221
醉梦人生
醉梦人生 2020-12-05 07:45

How can I disable Spring logs to have log outputs that I can easily read or someone else can read. An answer to a similar question at, how to disable spring bean loading log

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 08:27

    You can specify the required package name as can be seen in the following example:

    log4j.logger.com.foo=WARN
    

    Now you can see only WARN, ERROR and FATAL logs in console.

提交回复
热议问题