728x90
logging.basicConfig(
filename='log.txt',
format='%(asctime)s %(levelname)s:%(message)s',
level=logging.INFO,
datefmt='%m/%d/%Y %I:%M:%S %p',
)
파이썬 logging할 때 설정값
728x90
'파이썬 python' 카테고리의 다른 글
[python] warning 제거 (0) | 2024.06.25 |
---|---|
파이썬 에러 : SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape (0) | 2022.11.10 |
selenium을 이용한 네이버 뉴스 날짜별 크롤링 (3) | 2021.12.20 |
파이썬에서 힙(heap) 사용하기 - heapq (0) | 2021.12.14 |
OOP(Object Oriented Programming) - python (0) | 2021.09.13 |