What Is Logger.getlogger In Python Code Example


Example: from logging import logger

#!/usr/bin/env python3 # -*- coding: UTF-8 -*-  import logging  logger = logging.getLogger(__name__) logging.basicConfig(level=logging.DEBUG)  logger.debug('Loging %s lewel', 'DEBUG') logger.info('Loging %s lewel', 'INFO') logger.warning('Loging %s lewel', 'WARN') logger.error('Loging %s lewel', 'ERROR') logger.critical('Loging %s lewel', 'CRITICAL')

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable