FreeKB - How to adjust a JVMs logging level in WebSphere
How to adjust a JVMs logging level in WebSphere

Home > Search > How-to


In the WebSphere admin console, navigate to Troubleshooting > Logs and Trace > your application server, node, or deployment manager > Change log detail levels. The default log level is *=info.

 

The format of log level is <component>=<level>. In this example, the log level is every component at level info and above. The following log levels can be used.

  • off
  • fatal (task cannot continue and component can no longer function)
  • severe (task cannot continue but component can still function)
  • warning (potential error)
  • audit (significant event)
  • info (general info)
  • config (changes made to master configuration)
  • detail (general info)
  • fine (basic trace)
  • finer (detailed trace plus exit code/return value)
  • finest (all trace events)
  • all

 

There are too many possible components to list here. Here are a few of the more commonly used components.

  • * (every component)
  • com.ibm.* (ibm components)
  • com.ibm.websphere.* (websphere components)
  • com.ibm.soap.* (soap components)

 

When you use a log level, everything at that level and above will be logged. For example, when *=info is used, all info, audit, warning, severe, and fatal events will be logged. Be aware that lower log levels will log more events, which can reduce the performance of the applications deployed.

Checkmarking "Disable logging and tracing of potentially sensitive data" will prevent sensitive information, such as credit card numbers, from being written to logs. There is a tradeoff here. The benefit is that security will be enhanced, as the possibility of sensitive data getting into the wrong hands is decreased. The drawback is that is may be more difficult to diagnose some problem. For example, if users are reporting an issue with credit card sumissions, the diabling of the writing of credit card numbers to the logs will make it more difficult to debug issues with credit card transactions.

If you change the log level, restart the JVM for the change to take effect.

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter ee3b3 in the box below so that we can be sure you are a human.




Comments