Home Assistant Unofficial Reference 2024.12.1
homeassistant.util.logging.HomeAssistantQueueHandler Class Reference
Inheritance diagram for homeassistant.util.logging.HomeAssistantQueueHandler:
[legend]
Collaboration diagram for homeassistant.util.logging.HomeAssistantQueueHandler:
[legend]

Public Member Functions

None close (self)
 
Any handle (self, logging.LogRecord record)
 

Public Attributes

 listener
 

Static Public Attributes

 None
 

Detailed Description

Process the log in another thread.

Definition at line 22 of file logging.py.

Member Function Documentation

◆ close()

None homeassistant.util.logging.HomeAssistantQueueHandler.close (   self)
Tidy up any resources used by the handler.

This adds shutdown of the QueueListener

Definition at line 44 of file logging.py.

◆ handle()

Any homeassistant.util.logging.HomeAssistantQueueHandler.handle (   self,
logging.LogRecord  record 
)
Conditionally emit the specified logging record.

Depending on which filters have been added to the handler, push the new
records onto the backing Queue.

The default python logger Handler acquires a lock
in the parent class which we do not need as
SimpleQueue is already thread safe.

See https://bugs.python.org/issue24645

Definition at line 27 of file logging.py.

Member Data Documentation

◆ listener

homeassistant.util.logging.HomeAssistantQueueHandler.listener

Definition at line 53 of file logging.py.

◆ None

homeassistant.util.logging.HomeAssistantQueueHandler.None
static

Definition at line 25 of file logging.py.


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