Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Control logging level by WebSphere admin console

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?

like image 620
GD_Java Avatar asked Sep 30 '14 06:09

GD_Java


People also ask

How do I change the log level in console?

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.

Which of these are levels of logging?

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.


1 Answers

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 ':'.

like image 109
Magic Wand Avatar answered Sep 22 '22 12:09

Magic Wand