Current Path : /usr/lib/python2.7/dist-packages/landscape/ |
Current File : //usr/lib/python2.7/dist-packages/landscape/log.pyc |
Tc @ s@ d d l Z d d l Z d Z d Z d Z d Z d S( iNc C s t j | r9 t | j d d } d | j | f St j | rr t | j d d } d | j | f Sd | j j | j j f S( so Returns a fully-qualified name for the specified object, such as 'landscape.log.format_object()'. t i s %s.%s()i s %s.%s( t inspectt ismethodt reprt splitt __module__t isfunctiont __class__t __name__( t objectt name( ( s1 /usr/lib/python2.7/dist-packages/landscape/log.pyt format_object s c C s | s d } n d t | S( Ng s %.02fs( t float( t seconds( ( s1 /usr/lib/python2.7/dist-packages/landscape/log.pyt format_delta s c C s | s d } n d t | S( Ng s %.02f%%( R ( t percent( ( s1 /usr/lib/python2.7/dist-packages/landscape/log.pyt format_percent s c C s xm t j j D]\ } t | t j r | j z) | j j t | j | j | _ Wd | j Xq q Wt j d d S( s This closes and reopens the underlying files in the logging module's root logger. If called after logrotate (or something similar) has moved the old log file out of the way, this will start writing to a new new log file... Ns Landscape Logs rotated( t loggingt getLoggert handlerst isinstancet FileHandlert acquiret streamt closet opent baseFilenamet modet releaset info( t handler( ( s1 /usr/lib/python2.7/dist-packages/landscape/log.pyt rotate_logs"