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.12.tar.gz (3.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: python3_log-0.0.12.tar.gz
  • Upload date:
  • Size: 3.5 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.12.tar.gz
Algorithm Hash digest
SHA256 a017bfa093c1618482b0a75372013961e5d131b85d6dd009477d930367183ffd
MD5 9b00541ff50221008da998147c2706dd
BLAKE2b-256 85824ff169ff94965e7400a22709c4a455e5cefea25805e2fb5e101d353a4a6c

See more details on using hashes here.

Supported by

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