Export to GitHub

google-glog - issue #231

Question: how to get log file name?


Posted on Mar 13, 2015 by Happy Rhino

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!

Status: New

Labels:
Type-Defect Priority-Medium