#NEWLINE# def _log( logger , level , format = '' , **kwargs ) : #NEWLINE# #INDENT# if ( ( 'log_category' in kwargs ) and ( kwargs [ 'log_category' ] in _categories ) ) : #NEWLINE# #INDENT# format = _categories . get ( kwargs [ 'log_category' ] ) #NEWLINE# #UNINDENT# kwargs [ 'log_time' ] = time . time ( ) #NEWLINE# kwargs [ 'log_level' ] = level #NEWLINE# kwargs [ 'log_format' ] = format #NEWLINE# if ( level == 'trace' ) : #NEWLINE# #INDENT# level = 'debug' #NEWLINE# kwargs [ 'txaio_trace' ] = True #NEWLINE# #UNINDENT# msg = format . format ( ** kwargs ) #NEWLINE# getattr ( logger . _logger , level ) ( msg )