#NEWLINE# def setup_debug_logging_to_file( config ) : #NEWLINE# #INDENT# formatter = logging . Formatter ( config [ 'logging' ] [ 'debug_format' ] ) #NEWLINE# handler = logging . handlers . RotatingFileHandler ( formatter [ 'logging' ] [ 'debug_file' ] , maxBytes = 10485760 , backupCount = 3 ) #NEWLINE# handler . setFormatter ( formatter ) #NEWLINE# logging . getLogger ( '' ) . addHandler ( handler )