We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let's say I have something like this in my production code:
var username = "fred"; MDC.put("user", username); logger.warn("The user " + username + " has requested xyz");
I would like to be able to check that the message contains a string that matches a certain MDC key:
logCaptureListener.logged(aLog().withMdc("user", ???).withMessage(Mathers.containsString(<whatever was in Mdc>));
Perhaps this feature can be delivered in a similar way to Mockito's or Mockk's "capture" facitilities.
The text was updated successfully, but these errors were encountered:
Let me think about it. I guess we could add Context and keep some data there 🤔
Context
Sorry, something went wrong.
No branches or pull requests
Let's say I have something like this in my production code:
I would like to be able to check that the message contains a string that matches a certain MDC key:
Perhaps this feature can be delivered in a similar way to Mockito's or Mockk's "capture" facitilities.
The text was updated successfully, but these errors were encountered: