로깅을 위한 패키지
Project description
retrotv-log
Python3의 logging을 좀 더 쓰기 편하게 하기 위한 패키지 입니다.
설치
pip install retrotv-log
사용법
from log import Log
log = Log(__name__).get_logger
log.info("this is INFO level log")
인자
| 인자명 | 필수여부 | 기본값 | 설명 |
|---|---|---|---|
| name | O | 없음 | 로깅 호출에 사용된 logger의 이름 |
| level | X | logging.INFO | 로깅 레벨 |
| formatter | X | [%(levelname)s] [%(asctime)s] [%(module)s]: %(message)s | 로깅 메시지 포맷 |
| use_console | X | True | 콘솔 출력 사용여부 |
| use_file | X | True | 파일 기록 사용여부 |
| filename | X | None | 파일 기록 시, 로그가 기록할 파일 명 |
| timed_rotating_file_handler | X | None | TimedRotatingFileHandler 객체. 해당 객체가 None이 아닐 경우, 파일 기록 시 해당 객체를 참고하여 로그 파일을 기록함 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
retrotv_log-0.0.3a0.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file retrotv_log-0.0.3a0.tar.gz.
File metadata
- Download URL: retrotv_log-0.0.3a0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb21184eb3a42759b5c92fcb85821d28a87eeb0bc87e1cba0ab48b72838f1955
|
|
| MD5 |
b4ae3687bb5e6eb7008bc479020ce240
|
|
| BLAKE2b-256 |
ea74091dd9006dbbd9e5ae3802d2fcea11ef8e84b2fd3279667234a24f5509c9
|
File details
Details for the file retrotv_log-0.0.3a0-py3-none-any.whl.
File metadata
- Download URL: retrotv_log-0.0.3a0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d33f0be3ebc7c026af195a2ed482742467c864cdd57ce021a94ee7a9fe25aef3
|
|
| MD5 |
60e18f4cbed1cd98e3f2228c234e2bf5
|
|
| BLAKE2b-256 |
1b2ce875c7d7554a3f7e00642e28655473c0c8c263b79f9507bdf0a8b6ce508e
|