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

Add a config option to print panic output to stdout. #146

Open
alercah opened this issue Dec 15, 2023 · 0 comments
Open

Add a config option to print panic output to stdout. #146

alercah opened this issue Dec 15, 2023 · 0 comments

Comments

@alercah
Copy link

alercah commented Dec 15, 2023

I'm working on a "testing harness lite" library, where multiple erros can be accumulated and then emitted all at the end of the test.

I would like to make it so that "primary" test output goes to stdout, while logging output goes to stderr. This creates an unusual case where panics are "primary" and therefore should got to stdout rather than the usual stderr.

So I would like a config option that supports changing the target of the panic hook's printing to stdout instead of stderr.

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

1 participant