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
Hi, first of all thank you very much!
I noticed that the info logs are written to stderr, thus showing up as errors on the GCP logs explorer (Kubernetes):
The text was updated successfully, but these errors were encountered:
Seems like it is by design, from docs:
That logger writes to standard error and prints the date and time of each logged message.
So with standard packages all fmt.Print("Hello") goes to stdout, and log.Print("World") to stderr
fmt.Print("Hello")
log.Print("World")
Workaround for this might be to redefine output with help of SetOutput, like:
log.SetOutput(os.Stdout)
Or even add an optional flag that will switch behavior
Sorry, something went wrong.
No branches or pull requests
Hi, first of all thank you very much!
I noticed that the info logs are written to stderr, thus showing up as errors on the GCP logs explorer (Kubernetes):
The text was updated successfully, but these errors were encountered: