Controlling logging levels through the WebSphere administrative console
•
Java
I have a web application in which I use Java util. logging. In my logging In the properties file, the default level is info
What if I want to change the logging level from information to errors at runtime through the was management console? How can I do this?
Solution
Log in to was management console and click troubleshooting - > logs and trace - > your server - > diagnostic trace service - > change log level details
There, you can add your own log level, such as
com.example.test.*=all
You can change it permanently or change the log level dynamically at runtime (runtime tab) Log levels are separated by ":
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码