Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant