Control logging level by WebSphere admin console
Solution 1
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 ':'.
Solution 2
In addition to Magic Wand answer:
- Changes on the Configuration tab are valid after server restart
- Changes on the Runtime tab are valid only till server restart unless you checked
Save runtime changes to configuration as well
- You can either type your trace string in the text area, or select it using the
Components
tree (your packages may not be visible, if classes were not loaded yet) - All messages with levels
fine, finer, finest
will go to thetrace.log
not to theSystemOut.log
.
GD_Java
Updated on June 22, 2022Comments
-
GD_Java about 2 years
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?