python 3.x logging (파이썬 로그) 파일, 컨솔(file, console) 방식 사용방법 (handler close, rem


python 3.x logging (파이썬  로그) 파일, 컨솔(file, console) 방식 사용방법 (handler close, rem

안녕하세요. 행부장입니다. 파이선 로그(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..


원문링크 : python 3.x logging (파이썬 로그) 파일, 컨솔(file, console) 방식 사용방법 (handler close, rem