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

Uploaded Source

File details

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

File metadata

  • Download URL: python3_log-0.0.11.tar.gz
  • Upload date:
  • Size: 3.4 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.11.tar.gz
Algorithm Hash digest
SHA256 f3cc33be15affa7a8dd52d96d17f3cf09f61fbe11e6f73a14a83a25bd68e5746
MD5 e89f43face9851172bee12e97e5b1de9
BLAKE2b-256 9b1c723ac657781eedb84c681a892803802e479fbe4fc49cd1aeaef413b4a746

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