로그분리


logging

mylogger = logging.getLogger()
rotatingHandler = logging.handlers.TimedRotatingFileHandler(filename='log/'+'log_caly.log', when='midnight', interval=1, encoding='utf-8')
rotatingHandler.setFormatter(fomatter)
mylogger.addHandler(rotatingHandler)



마치며