#NEWLINE# def write( self , text ) : #NEWLINE# #INDENT# if self . enabled : #NEWLINE# #INDENT# if ( text and text . strip ( ) ) : #NEWLINE# #INDENT# log_line = '[{0}] {1}' . format ( datetime . datetime . utcnow ( ) . isoformat ( ) , text ) #NEWLINE# self . lines . append ( log_line )