#NEWLINE# def make_record( self , message , exception , filename , lineno ) : #NEWLINE# #INDENT# category = filename . __name__ #NEWLINE# if ( exception . __module__ not in ( 'exceptions' , 'builtins' ) ) : #NEWLINE# #INDENT# category = ( ( exception . __module__ + '.' ) + category ) #NEWLINE# #UNINDENT# rv = logbook . LogRecord ( category , logbook . WARNING , message ) #NEWLINE# rv . filename = filename #NEWLINE# rv . lineno = lineno #NEWLINE# return rv