google / glog

C++ implementation of the Google logging module
http://google.github.io/glog/
BSD 3-Clause "New" or "Revised" License
6.93k stars 2.05k forks source link

Apply max_log_file constraint when timestamp_in_log_file=false #1089

Open andrembcosta opened 4 months ago

andrembcosta commented 4 months ago

Currently, when the flag timestamp_in_log_file=false and max_log_file is set, instead of quitting logging or overwriting to preserve the size limit, glog just appends to the log file and eventually breaks the size limit.

Am I missing another flag to get the intended behavior of having a single log file of limited size? Or is this an actual limitation?

This appears to be similar to https://github.com/google/glog/issues/809