File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/_logging/__pycache__/handlers.cpython-310.pyc
Back
o ;jQ � @ s� d Z ddlZddlZddlZddlmZ ddlmZ e�e �Z G dd� deej�ZG dd� de�ZG d d � d eej �Z G dd� deejj�ZG d d� deejj�ZG dd� deejj�ZdS )zT salt._logging.handlers ~~~~~~~~~~~~~~~~~~~~~~ Salt's logging handlers � N)�deque)�ExcInfoOnLogLevelFormatMixinc @ � e Zd ZdZdS )� StreamHandlerzO Stream handler which properly handles exc_info on a per handler basis N��__name__� __module__�__qualname__�__doc__� r r �J/opt/saltstack/salt/lib/python3.10/site-packages/salt/_logging/handlers.pyr � r c s@ e Zd ZdZd� fdd� Zdd� Z� fdd�Zd d d�Z� ZS )�DeferredStreamHandlera� This logging handler will store all the log records up to its maximum queue size at which stage the first messages stored will be dropped. Should only be used as a temporary logging handler, while the logging system is not fully configured. Once configured, pass any logging handlers that should have received the initial log messages to the function :func:`DeferredStreamHandler.sync_with_handlers` and all stored log records will be dispatched to the provided handlers. If anything goes wrong before logging is properly setup, all stored messages will be flushed to the handler's stream, ie, written to console. .. versionadded:: 3005 �'