<gh_stars>1-10
import os
import logging
from logging.handlers import TimedRotatingFileHandler
from utils.config import LOG_PATH,Config

class Logger(object):
    def __init__(self,logger_name='framework'):
        self.logger = logging.getLogger(logger_name)
        logging.root.setLevel(logging.NOTSET)
        c = Config().get('log')
        self.log_file_name = c.get('file_name') if c and c.get('file_name') else 'test.log'
        self