#NEWLINE# def isLoggingEffectiveFor( self , **kwargs ) : #NEWLINE# #INDENT# logger = self . logger #NEWLINE# if ( ( 'messageCodes' in kwargs ) or ( 'messageCode' in kwargs ) ) : #NEWLINE# #INDENT# if ( 'messageCodes' in kwargs ) : #NEWLINE# #INDENT# messageCodes = kwargs [ 'messageCodes' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# messageCodes = kwargs [ 'messageCode' ] #NEWLINE# #UNINDENT# messageCode = self . effectiveMessageCode ( messageCodes ) #NEWLINE# codeEffective = ( messageCode and ( ( not logger . messageCodeFilter ) or logger . messageCodeFilter . match ( messageCode ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# codeEffective = True #NEWLINE# #UNINDENT# if ( ( 'level' in kwargs ) and logger . messageLevelFilter ) : #NEWLINE# #INDENT# levelEffective = logger . messageLevelFilter . match ( kwargs [ 'level' ] . lower ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# levelEffective = True #NEWLINE# #UNINDENT# return ( codeEffective and levelEffective )