Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
glog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
glog
Commits
0bf00f95
Unverified
Commit
0bf00f95
authored
Nov 05, 2019
by
Sergiu Deitsch
Committed by
GitHub
Nov 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #491 from aesophor/update-doc
doc: add information about log cleaner
parents
5ef521d4
0f4975a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
glog.html
doc/glog.html
+18
-0
No files found.
doc/glog.html
View file @
0bf00f95
...
...
@@ -543,6 +543,24 @@ setting <code>GOOGLE_STRIP_LOG</code> to 1 or greater removes
all log messages associated with
<code>
VLOG
</code>
s as well as
<code>
INFO
</code>
log statements.
<h3><A
NAME=
strip
>
Automatically Remove Old Logs
</A></h3>
<p>
To enable the log cleaner:
<pre>
google::EnableLogCleaner(3); // keep your logs for 3 days
</pre>
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.
<p>
This feature can be disabled at any time (if it has been enabled)
<pre>
google::DisableLogCleaner();
</pre>
<h3><A
NAME=
windows
>
Notes for Windows users
</A></h3>
<p>
Google glog defines a severity level
<code>
ERROR
</code>
, which is
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment