Home Assistant Unofficial Reference 2024.12.1
homeassistant.bootstrap._RotatingFileHandlerWithoutShouldRollOver Class Reference
Inheritance diagram for homeassistant.bootstrap._RotatingFileHandlerWithoutShouldRollOver:
[legend]
Collaboration diagram for homeassistant.bootstrap._RotatingFileHandlerWithoutShouldRollOver:
[legend]

Public Member Functions

bool shouldRollover (self, logging.LogRecord record)
 

Detailed Description

RotatingFileHandler that does not check if it should roll over on every log.

Definition at line 656 of file bootstrap.py.

Member Function Documentation

◆ shouldRollover()

bool homeassistant.bootstrap._RotatingFileHandlerWithoutShouldRollOver.shouldRollover (   self,
logging.LogRecord  record 
)
Never roll over.

The shouldRollover check is expensive because it has to stat
the log file for every log record. Since we do not set maxBytes
the result of this check is always False.

Definition at line 659 of file bootstrap.py.


The documentation for this class was generated from the following file: