Skip to main content

log

安装

pip3 install python3-log

用法

  • 配置日志 修改 env.sh, 然后执行如下命令使变量生效,若不执行此步骤,则默认会采用此文件中的值作为默认值
source env.sh 
from log import log

log.info("info log")
log.warning("warnning log")
log.error("error log")

默认情况下,在Windows平台,日志文件存放在当前目录下,在linux平台,则按照 env.sh 中配置的位置存放

Metadata

Release files for python3-log 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python3-log 0.2.2
File Size Uploaded Provenance Actions
python3_log-0.2.2.tar.gz 3.6 kB Without provenance Details for python3_log-0.2.2.tar.gz

Release files / python3_log-0.2.2.tar.gz

Download URL python3_log-0.2.2.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a13b5097835cbcbacd9c8013d5b33915aac7196ed6daac791790796dc65f1f42
BLAKE2b-256 checksum
How to use checksums
5bfc253020fed93a177635de79c96d1d3fc7e3c1ad0ebd56299dcb293f2bf373
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Security for python3-log 0.2.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page