Opened 17 years ago

Closed 17 years ago

#48 closed enhancement (fixed)

log gatherer should auto-rotate+compress logfiles

Reported by: Brian Warner Owned by:
Priority: major Milestone: 0.2.5
Component: logging Version: 0.2.4
Keywords: Cc:

Description

The log gatherer process should periodically close, compress, rename, and reopen its generated logfiles. These files should acquire a name derived from the starting and ending timestamps, and be bz2-compressed. I'm thinking they should be rotated every 24 hours, and also in response to SIGHUP.

This would make the gatherer a lot more usable. At the moment, it emits everything to a very large non-compressed pickle file, which grows so big that it becomes impossible to work with. Rotating the file is a hazardous operation: it is easy to accidentally delete it (since the gatherer truncates an existing file), and the gatherer will lose events while it is offline.

Change History (1)

comment:1 Changed 17 years ago by Brian Warner

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.