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
Hello,
I am trying to accomplish a logging on different channel depending on the level of the log.
<= Warning
stdout
>= Error
stderr
Is there a way to get this work ?
For now I got
backend := logging.NewLogBackend(os.Stdout, "", 0) leveledConsoleBackend = logging.AddModuleLevel(backend) // ... errorBackend := logging.NewLogBackend(os.Stderr, "", 0) leveledConsoleErrorBackend = logging.AddModuleLevel(errorBackend) leveledConsoleErrorBackend.SetLevel(logging.ERROR, "") logging.SetBackend(leveledConsoleErrorBackend, leveledConsoleBackend)
But with this, I see error logs output both in Stdoud and Stderr
Thank you for your help!
The text was updated successfully, but these errors were encountered:
I opened a ticket in July lol, waiting for a response :(
Sorry, something went wrong.
No branches or pull requests
Hello,
I am trying to accomplish a logging on different channel depending on the level of the log.
<= Warning
, then log tostdout
>= Error
, then log tostderr
Is there a way to get this work ?
For now I got
But with this, I see error logs output both in Stdoud and Stderr
Thank you for your help!
The text was updated successfully, but these errors were encountered: