We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently I've found solution to create wrapper for Logger such as:
type ProcessLogger struct { logging.Logger } func (pl *ProcessLogger) Write(p []byte) (n int, err error) { pl.Debug(string(p)) return len(p), nil }
and use this option when creating a new Process to set it for both out and err:
out
err
cn-infra/exec/processmanager/process_options.go
Lines 74 to 80 in 42c7431
It would be nice if this template code could be avoided.
I'm not sure if this requires changes in processmanager or logging packages.
processmanager
logging
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently I've found solution to create wrapper for Logger such as:
and use this option when creating a new Process to set it for both
out
anderr
:cn-infra/exec/processmanager/process_options.go
Lines 74 to 80 in 42c7431
It would be nice if this template code could be avoided.
I'm not sure if this requires changes in
processmanager
orlogging
packages.The text was updated successfully, but these errors were encountered: