#NEWLINE# def to_dict( self , json_safe = False ) : #NEWLINE# #INDENT# 'Exports the log record into a dictionary without the information\n        that cannot be safely serialized like interpreter frames and\n        tracebacks.\n        ' #NEWLINE# self . pull_information ( ) #NEWLINE# rv = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , value ) in iteritems ( self . __dict__ ) : #NEWLINE# #INDENT# if ( ( key [ : 1 ] != '_' ) and ( key not in self . _noned_on_close ) ) : #NEWLINE# #INDENT# rv [ key ] = value #NEWLINE# #UNINDENT# #UNINDENT# rv [ 'extra' ] = dict ( rv [ 'extra' ] ) #NEWLINE# if json_safe : #NEWLINE# #INDENT# return to_safe_json ( rv ) #NEWLINE# #UNINDENT# return rv