diff --git a/doc/glog.html b/doc/glog.html index 0edaa66e7..699d2ceb8 100644 --- a/doc/glog.html +++ b/doc/glog.html @@ -543,6 +543,24 @@
VLOG
s as well as
INFO
log statements.
+To enable the log cleaner: + +
+google::EnableLogCleaner(3); // keep your logs for 3 days ++ +And then Google glog will check if there are overdue logs whenever +a flush is performed. In this example, any log file from your project whose +last modified time is greater than 3 days will be unlink()ed. + +
This feature can be disabled at any time (if it has been enabled) + +
+google::DisableLogCleaner(); ++
Google glog defines a severity level ERROR
, which is