Skip to main content

logPPP

Project description

日志记录

简介

日志记录模块是一个简单的日志输出工具,它可以将不同等级(INFO、WARNING、ERROR、DEBUG、CRITICAL)的日志输出到控制台。

使用方法

要使用日志记录模块,请在您的Python脚本或模块中导入它,如下所示:

pip install logPPP
import logPPP/from logPPP import *

示例

from logPPP import *

Config(logging_is_output_sys_stdout=True, logging_is_output_file=False, logging_level=DEBUG)
logger.info("info")
logger.debug("debug")
logger.warning("warning")
logger.error("error")
logger.critical("critical")

import logPPP

logPPP.Config(logging_is_output_sys_stdout=True, logging_is_output_file=False, logging_level=logPPP.DEBUG)
logPPP.logger.info("info")
logPPP.logger.debug("debug")
logPPP.logger.warning("warning")
logPPP.logger.error("error")
logPPP.logger.critical("critical")

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

logPPP-1.2.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

logPPP-1.2.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file logPPP-1.2.0.tar.gz.

File metadata

  • Download URL: logPPP-1.2.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for logPPP-1.2.0.tar.gz
Algorithm Hash digest
SHA256 d2feb7303f4d1921972342f2758447d3b83c230c8937ab9fb60b1dd8897345b0
MD5 527a96eacde2383046d165ea82a41c4e
BLAKE2b-256 f7cae5d1f4a02706a3e7498a4c330e826dfb4830c4298721fe15dc490167a9dd

See more details on using hashes here.

File details

Details for the file logPPP-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: logPPP-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for logPPP-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd0c35ce2a69d1daa9597b37faccb1b1564bcd8a68996e34386a740d056e0969
MD5 7f03fcf967b7b83577f404c954e93154
BLAKE2b-256 b50b3c4bc8fc4650107fdc37a9089566df6a92987e142982fd2ee4c63222a06b

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