Write log output to ~/.cache/zeitgeist/

Bug #931136 reported by Siegfried Gevatter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zeitgeist Framework
Fix Released
Low
Siegfried Gevatter

Bug Description

Writing log output to a file is still missing from the Python version. We had a daily rotated file there.

Changed in zeitgeist:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Manish Sinha (मनीष सिन्हा) (manishsinha) wrote : Re: [Bug 931136] [NEW] Write log output to ~/.cache/zeitgeist/

If zeitgeist writes blacklisted events to log too, then please add a
switch to executable to turn off logging.

Revision history for this message
Siegfried Gevatter (rainct) wrote :

> If zeitgeist writes blacklisted events to log too

By default they won't be logged since the priority of those messages is DEBUG. However, you've raised a good point. We should probably chmod 0600 the log files too, just in case (and for consistency :)).

Revision history for this message
Siegfried Gevatter (rainct) wrote :

 * Added --log-file option for writing log output to a file.
 * Changed blacklist output to obfuscate (hash) identifiers.

A (very) incomplete implementation of log rotation is in commit #409, but we didn't add it yet since Michal was concerned about startup time.

Changed in zeitgeist:
assignee: nobody → Siegfried Gevatter (rainct)
milestone: none → 0.9.0
status: Confirmed → Fix Committed
Seif Lotfy (seif)
Changed in zeitgeist:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.