import logging

"""
    Formatter
"""
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt='%Y-%m-%d:%H:%M:%S')

"""
    Set Flask logger
"""

logger = logging.getLogger('FLASK_LOG')
logger.setLevel(logging.DEBUG)
stream_log = logging.StreamHandler()
stream_log.setFormatter(formatter)
logger.addHandler(stream_log)
# if disabled
# logger.disabled = True

[(6, 'logging.Formatter', 'logging.Formatter', False, 'import logging\n'), (12, 'logging.getLogger', 'logging.getLogger', False, 'import logging\n'), (14, 'logging.StreamHandler', 'logging.StreamHandler', False, 'import logging\n')]