"""
    Settings of logger.
"""

import logging
import sys
import colorlog

logger = logging.getLogger('')
logger.setLevel(logging.INFO)
sh = logging.StreamHandler(sys.stdout)
sh.setFormatter(
    colorlog.ColoredFormatter(
        '%(log_color)s [%(asctime)s] %(levelname)s ' +
        '[%(filename)s.%(funcName)s:%(lineno)d] %(message)s',
        datefmt='%a, %d %b %Y %H:%M:%S'))
logger.addHandler(sh)
