#NEWLINE# def format( self , record ) : #NEWLINE# #INDENT# if ( record . levelno == logging . WARN ) : #NEWLINE# #INDENT# self . _fmt = self . warn_format #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( record . levelno == logging . ERROR ) or ( record . levelno == logging . CRITICAL ) ) : #NEWLINE# #INDENT# self . _fmt = self . error_format #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _fmt = record . default_format #NEWLINE# #UNINDENT# #UNINDENT# return super ( ColoredLogFormatter , self ) . format ( record )