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

Let glog log only to console #923

Open
andrea-cassioli-maersk opened this issue May 17, 2023 · 2 comments
Open

Let glog log only to console #923

andrea-cassioli-maersk opened this issue May 17, 2023 · 2 comments

Comments

@andrea-cassioli-maersk
Copy link

I mention in another thread, but I would like to better understand how to let glog log only to console.

In my use case, the application runs in a docker container in a kubernetes cluster. The cluster has its logging service that monitors the console output of the process and make it available via grafana. So it seems natural to skip the file logging and go on the console (also nice when developing...).

How can this be done?

@andrea-cassioli-maersk
Copy link
Author

From the code, I have found

  FLAGS_logtostdout = true;

is that the way? Will it be worth adding this to the docs?

@Mideky-hub
Copy link

I think everything is worth adding to the docs, documentation never have "enough" information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants