-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get the diagnostic context in the event. #5
Comments
LogUnit uses Slf4j's The underlying Log4j2 and Logback events both provide access to their MDC implementation though. You might want to check with the Slf4j project to see if they'd be willing to add a |
Yes you are right. Or maybe we could have a wrapper in logunit ? I created an issue on Slf4j : qos-ch/slf4j#345 |
We could also inherit / extend slf4j's |
That would be cool to have the map of diagnostic context in the final log event. This is equivalent to ThreadContext Map in log4j2, and to MDC in logback.
That would allow to test that
ThreadContext.put()
andMDC.put
is being called.The text was updated successfully, but these errors were encountered: