standard¶
- class litestar.logging.standard.LoggingQueueListener¶
-
Custom
QueueListenerwhich starts and stops the listening process.- __init__(queue: Queue[LogRecord], *handlers: Handler, respect_handler_level: bool = False) None¶
Initialize
LoggingQueueListener.- 参数:
queue¶ -- The queue to send messages to
*handlers¶ -- A list of handlers which will handle entries placed on the queue
respect_handler_level¶ -- If
respect_handler_levelisTrue, a handler's level is respected (compared with the level for the message) when deciding whether to pass messages to that handler
- class litestar.logging.standard.QueueListenerHandler¶
基类:
QueueHandlerConfigure queue listener and handler to support non-blocking logging configuration.
小心
This handler doesn't work with Python >= 3.12 and
logging.config.dictConfig. It might be deprecated in the future. Please uselogging.QueueHandlerinstead.