I have a web application in which I am using java.util.logging. In my logging.properties files default level is info. I have loggers in my application for all levels of logging (info, debug, fatal etc). This web application will be deployed on WebSphere 8.
What if I want to change logging level, lets say from info to error, of application through WAS admin console at runtime? How can I achieve this?
The console opens in a new browser window. Click Troubleshooting > Logs and Trace. In the Logging and Tracing page, click the name of the Dashboard Application Services Hub (for example, server1). Click Change Log Detail Levels.
Logging levels explained. The most common logging levels include FATAL, ERROR, WARN, INFO, DEBUG, TRACE, ALL, and OFF. Some of them are important, others less important, while others are meta-considerations.
Log into WAS Admin console and click on Troubleshooting->Logs and trace->your server->Diagnostic trace service->Change log level details.
There you can add your own log levels, e.g.
com.example.test.*=all
You can change it permanently, or you can change log levels dynamically on runtime (tab "Runtime"). Log levels are separated with ':'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With