<s> """<STR_LIT>""" <EOL> from pycopia import reports <EOL> from pycopia import timelib <EOL> now = timelib . time <EOL> class LogFormatter ( reports . StandardFormatter ) : <EOL> MIMETYPE = "<STR_LIT>" <EOL> def message ( self , msgtype , msg , level = <NUM_LIT:1> ) : <EOL> if msgtype . find ( "<STR_LIT>" ) >= <NUM_LIT:0> : <EOL> msg = timelib . localtimestamp ( msg ) <EOL> return "<STR_LIT>" % ( now ( ) , msgtype , msg ) <EOL> def summaryline ( self , text ) : <EOL> return "<STR_LIT>" % ( now ( ) , "<STR_LIT>" ) </s>
