Skip to content
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

Log scope to test output #68

Open
carlin-q-scott opened this issue Aug 23, 2022 · 1 comment
Open

Log scope to test output #68

carlin-q-scott opened this issue Aug 23, 2022 · 1 comment

Comments

@carlin-q-scott
Copy link

Is your feature request related to a problem? Please describe.
I use logger scopes to add call stack context to all my log messages, but that information isn't output to the XUnit test log.

Describe the solution you'd like
I'd like the XunitTestOutputLogger to work like the standard console logger which appends the logger scope to the end of the output message.

Describe alternatives you've considered
Forking the logger in this project to add this feature.

@owns
Copy link

owns commented Nov 8, 2022

You can see here there's just a dummy nullable instance added.
Looking at Microsoft's default implementation, it doesn't look too hard, but I've never personally used scopes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants