#NEWLINE# def null_logger( func ) : #NEWLINE# #INDENT# def check_logger( * args ) : #NEWLINE# #INDENT# if ( type ( args [ ( - 1 ) ] ) is logging . Logger ) : #NEWLINE# #INDENT# return func ( * args ) #NEWLINE# #UNINDENT# null_logger = logging . getLogger ( 'default-null-logger' ) #NEWLINE# args_list = list ( args ) #NEWLINE# args_list . pop ( ) #NEWLINE# args_list . append ( null_logger ) #NEWLINE# return func ( * args_list ) #NEWLINE# #UNINDENT# return func