OwlCyberSecurity - MANAGER
Edit File: _stdlib.pyc
� `��ac @ s d Z d d l Z d d l m Z d d l m Z m Z m Z d d l m Z d d l m Z d d l m Z i e j e j 6e j e j 6e j e j 6e j e j 6e j e j 6Z d � Z e � Z e e � d e f d � � Y� Z d e f d � � YZ d S( s3 Integration with Python standard library logging. i����N( t implementer( t _PY3t currentframet unicodei ( t LogLevel( t formatEvent( t ILogObserverc C sD i } x7 t j � D]) \ } } | | | <| | t j | � <q W| S( s� Reverse the above mapping, adding both the numerical keys used above and the corresponding string keys also used by python logging. @return: the reversed mapping ( t toStdlibLogLevelMappingt itemst stdlibLoggingt getLevelName( t mappingt logLevelt pyLogLevel( ( sY /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/logger/_stdlib.pyt _reverseLogLevelMapping s t STDLibLogObserverc B s; e Z d Z d Z d e d � Z e d d � Z d � Z RS( se Log observer that writes to the python standard library's C{logging} module. @note: Warning: specific logging configurations (example: network) can lead to this observer blocking. Nothing is done here to prevent that, so be sure to not to configure the standard library logging module to block when used in conjunction with this module: code within Twisted, such as twisted.web, assumes that logging does not block. @cvar defaultStackDepth: This is the default number of frames that it takes to get from L{STDLibLogObserver} through the logging module, plus one; in other words, the number of frames if you were to call a L{STDLibLogObserver} directly. This is useful to use as an offset for the C{stackDepth} parameter to C{__init__}, to add frames for other publishers. i t twistedc C s. t j | � | _ | j | j _ | | _ d S( s� @param loggerName: logger identifier. @type loggerName: C{str} @param stackDepth: The depth of the stack to investigate for caller metadata. @type stackDepth: L{int} N( R t getLoggert loggert _findCallert findCallert stackDepth( t selft nameR ( ( sY /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/logger/_stdlib.pyt __init__C s i c C sG t | j � } | j } t r'