initLogConfig.py

import logging
import os
# from DataCleaning.library.functions.changeDirectory import *
from DataCleaning.library.config.config import LOG_FORMAT, DATE_FORMAT

# initiate configs for log
def initLogConfig(LOG_FORMAT, DATE_FORMAT, naming = "", logFileName = "log.log"):
# development2Log(naming)
os.chdir("D:\\DCG_PRF_Data_Team\\DataCleaning\\log")
logging.basicConfig(filename = logFileName, level = logging.DEBUG, format = LOG_FORMAT, datefmt = DATE_FORMAT)

# logging.basicConfig(filename = 'log.log', level = logging.DEBUG, format = LOG_FORMAT, datefmt = DATE_FORMAT)
# log2Development()
上一篇:java 日志框架详解


下一篇:copy2Output.py