Disabling Spring log, to have readable logs

前端 未结 5 1220
醉梦人生
醉梦人生 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:28

    Your default logging, for everything that isn't explictily specified, is DEBUG. So everything is logged at that level (judging from your configuration), basically you are flooding your logs. You should not remove loggers for org.springframework you should add them and set another level for them.

    log4j.logger.org.springframework=INFO 
    

    or whatever log level level you like.

提交回复
热议问题