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

Uploaded Source

File details

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

File metadata

  • Download URL: python3_log-0.2.2.tar.gz
  • Upload date:
  • Size: 3.6 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.2.2.tar.gz
Algorithm Hash digest
SHA256 a13b5097835cbcbacd9c8013d5b33915aac7196ed6daac791790796dc65f1f42
MD5 6d832275dee6f150a55edb73c811b786
BLAKE2b-256 5bfc253020fed93a177635de79c96d1d3fc7e3c1ad0ebd56299dcb293f2bf373

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