import logging fmt_str = '[%(asctime)s] %(levelname)s @ line %(lineno)d: %(message)s' logging.basicConfig(level=logging.DEBUG, format=fmt_str) logger = logging.getLogger(__name__) logger.debug('hello logged world')
import logging fmt_str = '[%(asctime)s] %(levelname)s @ line %(lineno)d: %(message)s' logging.basicConfig(level=logging.DEBUG, format=fmt_str) logger = logging.getLogger(__name__) logger.debug('hello logged world')