Helidon, Logging, and MDC by Tomas Langer

image

Helidon is designed to have the smallest number of third party dependencies as possible. With that goal in mind, we originally decided to use Java Util Logging (JUL) as its an integral part of the JVM with no added dependencies.

In Helidon 2.2.0, however, we have decided to support the following logging frameworks and some of their features:

· Java Util Logging (JUL) — already supported and does not require any changes in Helidon

· Simple Logging Facade for Java (SLF4J) — an API that can be used to log into multiple logging implementations (logback, Log4j, JUL)

· Log4j (version 2.x) — widely used logging framework

With the addition of Log4j and SLF4J we can now offer Mapped Diagnostic Context (MDC). This highly requested feature allows users to register a value with the MDC using a static method, and then write it to the output. This value could be a tracing ID that we want to see for each message, the current user, or a similar contextual value. Read the complete article here.

Developer Partner Community

For regular information become a member in the Developer Partner Community please register here.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.