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

Extend ExitState to allow setting desired output #140

Closed
atc0005 opened this issue Sep 15, 2022 · 1 comment · Fixed by #145
Closed

Extend ExitState to allow setting desired output #140

atc0005 opened this issue Sep 15, 2022 · 1 comment · Fixed by #145
Assignees
Labels
enhancement New feature or request output/plugin plugin output intended for monitoring system ingest
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Sep 15, 2022

Allow client code to override the output target instead of assuming that os.Stdout is always the target.

Benefits:

  • provide client code additional control over the output
  • allow for easier testing of output generated by this library
@atc0005 atc0005 added enhancement New feature or request output/plugin plugin output intended for monitoring system ingest labels Sep 15, 2022
@atc0005 atc0005 added this to the Future milestone Sep 15, 2022
@atc0005 atc0005 self-assigned this Sep 15, 2022
atc0005 added a commit that referenced this issue Sep 16, 2022
Add ExitState.SetOutputTarget method to provide client code
the ability to override the destination output sink. This
could be used to redirect output to a file, a tee writer
or an in-memory buffer for test purposes.

Default to os.Stdout if user does not specify a custom output
sink.

refs GH-140
@atc0005 atc0005 modified the milestones: Future, Next Release Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request output/plugin plugin output intended for monitoring system ingest
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant