wook815 / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

Disable glog stderr output #128

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?

1. LOG(ERROR) << "error message"
2. GLOG_logtostderr=0 ./test

What is the expected output? What do you see instead?

I expect not to see the error on console, but I did.

What version of the product are you using? On what operating system?

0.32

Please provide any additional information below.

I also tried the flag GLOG_logstderrthreshold=3, and that doesn't seem to work 
either.

Original issue reported on code.google.com by fwa...@gmail.com on 31 Jul 2012 at 10:26

GoogleCodeExporter commented 8 years ago
You could try:
    "google::SetStderrLogging(3);"
This should go after the logging initialization (or at least that's where I put 
it)  This will prevent all of the levels from being logged to std::err.

Original comment by christop...@gmail.com on 14 Aug 2012 at 4:06