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

Uploaded Source

File details

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

File metadata

  • Download URL: python3_log-0.2.1.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.2.1.tar.gz
Algorithm Hash digest
SHA256 ce5eaead7909d6836ebaf50ebe2a10bc74aa5d3d465a071f7c7eafb5183e5519
MD5 507417037c596207f02cae6fb41e4e87
BLAKE2b-256 1e037025ea4ee2bbbd8b3757a4668cd155283cac198c6caaeef213577c5a8d99

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