This article is a mirror article of machine translation, please click here to jump to the original article.

View: 7100|Reply: 0

[Source] Spring specifies log levels through configuration files or parameters

[Copy link]
Posted on 1/18/2022 9:19:31 AM | | |
Requirements: Logs output by colleagues using log.trace, console that cannot output trace-level logs after starting a spring project.

You can specify the logging.level log level in the application.properties configuration file as follows:

If you change the code and republish it takes a lot of time (because of Fortnite), you can only find a way to output trace-level logs to troubleshoot the problem. Of course, I don't want to make adjustments by directly modifying the contents of the jar package.

Java modifies the configuration file of the war package
https://www.itsvse.com/thread-10146-1-1.html
Spring overrides the default configuration inside the jar package
https://www.itsvse.com/thread-10129-1-1.html

In fact, you can specify the log level under certain packages through the command line, as follows:

(End)





Previous:OceanBase Database Management Tool Download
Next:【Actual combat】Hikvision face recognition attendance machine enters personnel and faces
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com