import logging


def initLogger(name):
    logger = logging.getLogger(name)
    formatter = logging.Formatter(
        '%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt=
        '%m/%d/%Y %I:%M:%S %p')
    ch = logging.StreamHandler()
    ch.setFormatter(formatter)
    ch.setLevel(logging.INFO)
    fh = logging.FileHandler('last.log', mode='w')
    fh.setFormatter(formatter)
    fh.setLevel(logging.INFO)
    logger.addHandler(fh)
    logger.addHandler(ch)
    logger.setLevel(logging.DEBUG)
    return logger

3f3fc1b691af4fbe0aae3837de4e42e07466e11f
<mask token>

<mask token>


def initLogger(name):
    logger = logging.getLogger(name)
    formatter = logging.Formatter(
        '%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt=
        '%m/%d/%Y %I:%M:%S %p')
    ch = logging.StreamHandler()
    ch.setFormatter(formatter)
    ch.setLevel(logging.INFO)
    fh = logging.FileHandler('last.log', mode='w')
    fh.setFormatter(formatter)
    fh.setLevel(logging.INFO)
    logger.addHandler(fh)
    logger.addHandler(ch)
    logger.setLevel(logging.DEBUG)
    return logger

import logging


def initLogger(name):
    logger = logging.getLogger(name)
    formatter = logging.Formatter(
        '%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt=
        '%m/%d/%Y %I:%M:%S %p')
    ch = logging.StreamHandler()
    ch.setFormatter(formatter)
    ch.setLevel(logging.INFO)
    fh = logging.FileHandler('last.log', mode='w')
    fh.setFormatter(formatter)
    fh.setLevel(logging.INFO)
    logger.addHandler(fh)
    logger.addHandler(ch)
    logger.setLevel(logging.DEBUG)
    return logger
