slf4j adding static context to log message

Viewed 20

I need to add some static context information to my log message. How can I do it?

The values which depend on servlet request I'm just add by MDC. But I have some another properties (like OpenShift pod name etc.) which is static, and collected from env, and I want to add them to every log message.

I'm looking to ThreadContext, but on stop on debug point in RequestFilter it's empty.

0 Answers
Related