l.addHandler(streamHandler)

def main():
    setup_logger('log1', 'C:\\temp\\log1.log')
setup_logger('log2', 'C:\\temp\\log2.log')
log1 = logging.getLogger('log1')
log2 = logging.getLogger('log2')
log1.info('Info for log 1!')
log2.info('Info for log 2!')
log1.error('Oh, no! Something went wrong!')
if '__main__' == __name__:
    main()
Python Logging to multiple log files from different classes