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 中配置的位置存放

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
python3_log-0.2.2.tar.gz 3.6 kB Details

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

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 release file

0.2.1

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

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