minghuayao1981 / google-glog

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

Question: how to get log file name? #231

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm logging to file (all levels to the same file) and I want to attach this 
file to the report I'm sending when my application crashes.

However, I am only able to set the base_filename in SetLogDestination, not the 
full filename. How can I get the generated filename without going through all 
the content of the log directory and finding the file with the largest 
timestamp?

Thank you in advance!

Original issue reported on code.google.com by hjano...@gmail.com on 13 Mar 2015 at 5:42