direct.directnotify.RotatingLog

from direct.directnotify.RotatingLog import RotatingLog

Inheritance diagram

digraph inheritancef121f4f366 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "RotatingLog" [URL="direct.directnotify.RotatingLog.html#direct.directnotify.RotatingLog.RotatingLog",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="An `open()` replacement that will automatically open and write"]; }
class RotatingLog(path: str = './log_file', hourInterval: int | None = 24, megabyteLimit: int | None = 1024)[source]

Bases: object

An open() replacement that will automatically open and write to a new file if the prior file is too large or after a time interval.