#NEWLINE# def format( self , record ) : #NEWLINE# #INDENT# message = { #NEWLINE# #INDENT# 'message' : record . getMessage ( ) , #NEWLINE# 'asctime' : self . formatTime ( record , self . datefmt ) , #NEWLINE# 'name' : record . name , #NEWLINE# 'msg' : record . msg , #NEWLINE# 'args' : record . args , #NEWLINE# 'levelname' : record . levelname , #NEWLINE# 'levelno' : record . levelno , #NEWLINE# 'pathname' : record . pathname , #NEWLINE# 'filename' : record . filename , #NEWLINE# 'module' : record . module , #NEWLINE# 'lineno' : record . lineno , #NEWLINE# 'funcname' : record . funcName , #NEWLINE# 'created' : record . created , #NEWLINE# 'msecs' : record . msecs , #NEWLINE# 'relative_created' : record . relativeCreated , #NEWLINE# 'thread' : record . thread , #NEWLINE# 'thread_name' : record . threadName , #NEWLINE# 'process_name' : record . processName , #NEWLINE# 'process' : record . process , #NEWLINE# 'traceback' : None , #NEWLINE# #UNINDENT# } #NEWLINE# if hasattr ( record , 'extra' ) : #NEWLINE# #INDENT# message [ 'extra' ] = record . extra #NEWLINE# #UNINDENT# if record . exc_info : #NEWLINE# #INDENT# message [ 'traceback' ] = self . formatException ( record . exc_info ) #NEWLINE# #UNINDENT# return jsonutils . dumps ( message )