By default, glog starts to create another file every 1.8GB logs. You
can change this value by setting max_log_size parameter. Suppose you
want to change file every 10MB. If you have gflags installed,
--max_log_size=10 should work. Otherwise, you need to set
GLOG_max_log_size=10 environment variable. You can control this value
in your program using FLAGS_max_log_size, too.
I guess setting this value as you like and discarding old log files
would achieve
what you want.
There are some undocumented commandline flags which are rarely used.
You can grep src/logging.cc by DEFINE_ to find this kind of flags.
Thanks,
On Jan 14, 2:49 pm, shinichiro hamaji <shinichiro.ham...@gmail.com>
wrote: