How to configure tracing in websphere liberty profile

Per , Liberty does aggregate the content you write to java.util.logging into its log files (messages.log and trace.log).

If something that you think has JUL trace instrumentation isn’t showing up in the Liberty trace despite setting the appropriate traceSpecification, you might want to double check to make sure the JUL Logger is actually getting registered. The log message you cut/pasted shows that, at least at the time the trace specification was processed, the specified logger had not been registered with the LogManager.

One way you can check to see which Loggers are registered is to use the LoggingMXBean ( to get the logger names to see if the logger they are trying to enable actually exists when the server is running.

You can access the LoggingMXBean from jconsole from your jre/bin directory.

If the Logger you are looking for is not in the list, it may be because the class uses a different Logger name (the use of the package and class name as the Logger name is just a convention), or it may be that the class that uses the Logger hasn’t yet reached the point in the code that registers its Logger (although it’s quite common for JUL loggers to be registered when the class is initialized).

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top