OwlCyberSecurity - MANAGER
Edit File: log.pyc
� 7��ac @ s� d d l m Z m Z m Z m Z m Z m Z m Z m Z d d l m Z d d l m Z d e f d � � YZ d e f d � � YZ e e j j � e _ e j e _ d S( i����( t Loggert LogLevelt LogPublishert FileLogObservert FilteringLogObservert LogLevelFilterPredicatet formatEventAsClassicLogTextt formatTime( t log( t loggerR c B sz e Z d Z d Z d Z e d e j � Z d Z e e d � � Z e d � � Z e e d � � Z d d � Z d � Z RS( s Logging object. t defaultLogLevelc ss | j d k r | j d k s* t d � � | r6 t n d � � t | � f d � � | _ t | j � | _ | j S( s For a child process that has its stdout captured by the master process to be logged by the master, we strip out the time from the log entry since the master process will always add one. Setting C{withTime} to L{False} will ensure no time is generated. s Only call this oncec S s d S( Nu ( ( t _( ( sC /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/log.pyt <lambda>0 t c s t | d � �S( NR ( R ( t event( t timeFormat( sC /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/log.pyR 1 R N( t filterPublishert Nonet filterObservert AssertionErrorR R R ( t clst streamt withTime( ( R sC /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/log.pyt makeFilteredFileLogObserver$ s c C s t j t | | j g � � d S( N( R t addObserverR t filterPredicate( R t observer( ( sC /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/log.pyt addFilteredObserver5 s c C s&