log-handler-daily-path - 一个每日切换日志路径模块
About
这是一个日志路径每日轮转模块,按照指定方式每日切换日志输出路径。
日志输出的路径为: { base_path }/{ yyyy-MM-dd }/{ filename }
Requirements
- Python3
Install
通过pip命令安装:
pip install log-handler-daily-path
Usage
import logging
from log_handler_daily_path import DailyRotatingPathHander
logging.basicConfig(level=logging.DEBUG)
log_handler = DailyRotatingPathHander(base_path="/var/log", filename="app.log", backup_days=30)
logging.getLogger().addHandler(log_handler)
logger = logging.getLogger("Logger")
logger.info("xxx")
Author
Metadata
Release files for log-handler-daily-path 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| log-handler-daily-path-0.0.3.zip | 18.0 kB | Without provenance | Details for log-handler-daily-path-0.0.3.zip |
Release files / log-handler-daily-path-0.0.3.zip
| Download URL | log-handler-daily-path-0.0.3.zip |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5cca8768a5dbcf6a593a6859570073a86850898c242cded8e14683df7c1a21f
|
|
BLAKE2b-256 checksum How to use checksums |
3ada43743c74c150d2276b3a83840fd36dc5c84f1750219752a39db041142530
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for log-handler-daily-path 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.