안녕하세요. 행부장입니다.
파이선 로그(python logging) 사용하는 방법 (handler close, remveHandler 포함) java log4j 유사합니다. (파이썬 3.7.x 환경에서 진행) import logging # create logger with 'myApplication' logger = logging.getLogger('myApplication') logger.setLevel(logging.DEBUG) # create file handler which logs even debug messages fh = logging.FileHandler('logTest.log') fileLogLevel=logging.INFO #DEBUG / INFO / WARNING / ERROR / C.....