fanzju / google-glog

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

Feature request: add support for limiting the number of log files #165

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. export GLOG_max_log_size=100
2. start program to produce debug logs

What is the expected output? What do you see instead?
log file rotated every 100MB, but the total number of those log files increased 
wildly.
Add a config option, for example  log_count, to control the total number of 
those log files. For example, set log_count to 10, the first log file will be 
removed if the 11th file is created.

What version of the product are you using? On what operating system?
glog-0.3.3
Centos 6.2 64bit

Please provide any additional information below.

Original issue reported on code.google.com by hhin...@gmail.com on 5 Aug 2013 at 9:09