import logging


def init_logger(name, level=logging.INFO):
    log = logging.getLogger(name)
    log.setLevel(level)
    ch = logging.StreamHandler()
    ch.setLevel(level)
    formatter = logging.Formatter(
        '[%(asctime)s] [%(name)s:%(lineno)d] [%(levelname)s] - %(message)s')
    ch.setFormatter(formatter)
    log.addHandler(ch)
    return log

5886c1cfd86fce4e5a8c11880089b1d69a3b5110
<mask token>

<mask token>


def init_logger(name, level=logging.INFO):
    log = logging.getLogger(name)
    log.setLevel(level)
    ch = logging.StreamHandler()
    ch.setLevel(level)
    formatter = logging.Formatter(
        '[%(asctime)s] [%(name)s:%(lineno)d] [%(levelname)s] - %(message)s')
    ch.setFormatter(formatter)
    log.addHandler(ch)
    return log

import logging


def init_logger(name, level=logging.INFO):
    log = logging.getLogger(name)
    log.setLevel(level)
    ch = logging.StreamHandler()
    ch.setLevel(level)
    formatter = logging.Formatter(
        '[%(asctime)s] [%(name)s:%(lineno)d] [%(levelname)s] - %(message)s')
    ch.setFormatter(formatter)
    log.addHandler(ch)
    return log
