Skip to main content

used to print log for any app or platform

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python3_log-0.0.9.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file python3_log-0.0.9.tar.gz.

File metadata

  • Download URL: python3_log-0.0.9.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for python3_log-0.0.9.tar.gz
Algorithm Hash digest
SHA256 5d8671daa97759a8515e99480d7052eb937ae4b74e287f835a6eadd7ec7777a9
MD5 05477047a0afd1c6fc7e2e3e8b9a3507
BLAKE2b-256 f55ddc61143bbbfbb61f3fdb055b817e904e6e840818dec3f15c17728b280487

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page