def __init__(self, name, console=True, filename="", refresh=False, shell=False): s.mkdir(define.APP_LOG) self.filename = filename self.logger = logging.getLogger(name) self.logger.setLevel(BASE_LEVEL) self.shell = shell if console: self.__addHandler(self.consoleHandler()) if filename != "": self.__addHandler( self.fileHandler(os.path.normpath( os.path.join(define.APP_LOG, self.filename)), refresh))
def __init__(self): s.mkdir(define.APP_TMP) s.mkdir(define.APP_EXCEL) s.mkdir(define.APP_LOG)