일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- docker
- judge
- Flask
- Linux
- AI
- curl
- DB
- evaluation
- Paper
- Windows
- GitLab
- Converting
- PostgreSQL
- file
- KAKAO
- Database
- CUDA
- Python
- Mac
- LLM
- enV
- pytorch
- Container
- git
- numpy
- Laravel
- TORCH
- pandas
- list
- format
Archives
- Today
- Total
목록initialize (1)
Daily Develope
[Python] 로그, 로깅 (logging)
기본 선언 및 환경설정 ㅇ 선언 import logging logging.basicConfig(filename=f'{os.getcwd()}/result_test.log', level=logging.INFO, format='%(asctime)s %(message)s') # 사용 예) import os import logging from datetime import datetime logging.basicConfig(filename=f'{os.getcwd()}/logs/my_log_{datetime.now().strftime("%Y%m%d_%H%M%S")}.log', level=logging.INFO, format='%(asctime)s %(message)s') ㅇ 환경설정 상세 설명 # Fromat : 로..
Develope/Python
2022. 1. 15. 10:01