compresslog: replace standard logger with a handrolled logger to syslog
commitd223a4632e6cf4ed18e5e69645bfa375418d4043
authorMartin Langhoff <martin.langhoff@gmail.com>
Fri, 20 Mar 2015 17:17:30 +0000 (20 13:17 -0400)
committerMartin Langhoff <martin.langhoff@gmail.com>
Fri, 20 Mar 2015 17:17:30 +0000 (20 13:17 -0400)
tree080f7925b94122a313a4a6398c12193fbc67f628
parentd0092725f1960482b93528d425af0cf84c556b6e
compresslog: replace standard logger with a handrolled logger to syslog

The standard Python logger is great, but it loads all the possible
loggers into memory, costing ~5MB in RAM per instance of compresslog.

This simplistic implementation loses some features, specifically the
nice "log stacktraces to syslog", but that is a secondary consideration
to avoiding OMM killer visits.
compresslog