shiningstarpxx / google-glog

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

Missing GetLogfilename() #116

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There appears to be no GetLogDestination() function available to the end user.

Expecting something parallel to SetLogDestination()

std::string  GetLogDestination( LogSeverity severity );

I realize one could "calculate" the current logfile destination, but that will 
depend on how the current process/thread ID is determined.

Original issue reported on code.google.com by macropan...@gmail.com on 3 Mar 2012 at 1:19

GoogleCodeExporter commented 9 years ago
This issue would be very nice to have for Apache Mesos, which uses glog 
extensively. We'd like to be able to dynamically know where the logs are in 
order to expose them to end users.

As such, I've attached a patch adding this functionality, please review and I'd 
be happy to improve it if there are any comments!

Original comment by benjamin...@gmail.com on 5 Sep 2012 at 11:08

Attachments: