provide mechanisms to forward output from jnlp app#35
Open
klarose wants to merge 1 commit intoRocketSoftware:masterfrom
Open
provide mechanisms to forward output from jnlp app#35klarose wants to merge 1 commit intoRocketSoftware:masterfrom
klarose wants to merge 1 commit intoRocketSoftware:masterfrom
Conversation
A misbehaving application may log information to stderr, or even stdout. Sometimes it is useful to collect this information for diagnostic purposes. Provide a mechanism to capture this output in a customizable fashion using callback functions invoked on a goroutine with the stdin/stderr pipe returned from the exec.Cmd we launch.
klarose
commented
Aug 17, 2022
| DisableVerificationSameOrigin bool | ||
|
|
||
| // If non-nil, processes output from stdout of the launched process | ||
| StdoutHandler OutputHandler |
Author
There was a problem hiding this comment.
An alternative to this would be to add it to the interface. I chose the options to limit the requirements of the interface, but I'm good with either approach.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A misbehaving application may log information to stderr, or even stdout.
Sometimes it is useful to collect this information for diagnostic
purposes. Provide a mechanism to capture this output in a customizable
fashion using callback functions invoked on a goroutine with the
stdin/stderr pipe returned from the exec.Cmd we launch.
An example of using this: