if __name__ == '__main__':
    logger = logging.getLogger('request_logger')
logger.setLevel(logging.DEBUG)
handler = MultiFileHandler(filename='out.log', mode='a')
handler.setLevel(logging.DEBUG)
logger.addHandler(handler)
logger.debug('debug message')
logger.info('info message')
logger.debug('debug message', extra={'file_id': 'changed.log'})
logger.info('info message', extra={'file_id': 'changed.log'})
logger.warn('warn message', extra={'file_id': 'changed.log'})
logger.error('error message', extra={'file_id': 'changed.log'})
logger.critical('critical message', extra={'file_id': 'changed.log'})
Is it possible to write many different log files using a single logger?