l.s.t.l.LaunchpadLogFile(DailyLogFile) : class documentation

Part of lp.services.twistedsupport.loggingsupport View In Hierarchy

Extending DailyLogFile to serve Launchpad purposes.

Additionally to the original daily log file rotation it also allows call sites to control the number of rotated logfiles kept around and when to start compressing them.

Method __init__ Undocumented
Method rotate Rotate the current logfile.
Method listLogs Return the list of rotate log files, newest first.
Method _compressFile Compress the file in the given path using bzip2.
def __init__(self, name, directory, defaultMode=None, maxRotatedFiles=None, compressLast=None):
Undocumented
def _compressFile(self, path):
Compress the file in the given path using bzip2.

The compressed file will be in the same path and old file will be removed.

Returnsthe path to the compressed file.
def rotate(self):
Rotate the current logfile.

Also remove extra entries and compress the last ones.

def listLogs(self):
Return the list of rotate log files, newest first.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.