RotatingLog

Inheritance:

Methods of RotatingLog:

__del__
def __del__(self)

Undocumented function.

__init__
def __init__(self, path="./log_file", hourInterval=24, megabyteLimit=1024)

path is a full or partial path with file name. hourInterval is the number of hours at which to rotate the file. megabyteLimit is the number of megabytes of file size the log may grow to, after which the log is rotated. Note: The log file may get a bit larger than limit do to writing out whole lines (last line may exceed megabyteLimit or "megabyteGuidline").

close
def close(self)

Undocumented function.

fileno
def fileno(self)

Undocumented function.

filePath
def filePath(self)

Undocumented function.

flush
def flush(self)

Undocumented function.

isatty
def isatty(self)

Undocumented function.

next
def next(self)

Undocumented function.

read
def read(self, size)

Undocumented function.

readline
def readline(self, size)

Undocumented function.

readlines
def readlines(self, sizehint)

Undocumented function.

rotate
def rotate(self)

Rotate the log now. You normally shouldn't need to call this. See write().

seek
def seek(self, offset, whence=0)

Undocumented function.

shouldRotate
def shouldRotate(self)

Returns a bool about whether a new log file should be created and written to (while at the same time stopping output to the old log file and closing it).

tell
def tell(self)

Undocumented function.

truncate
def truncate(self, size)

Undocumented function.

write
def write(self, data)

Write the data to either the current log or a new one, depending on the return of shouldRotate() and whether the new file can be opened.

writelines
def writelines(self, sequence)

Undocumented function.

xreadlines
def xreadlines(self)

Undocumented function.