Skip to main content

A logger for PaiGram's projects.

Project description

paigram-logger

A logger for PaiGram's projects.

Python 3.8 GitHub file size in bytes PyPI

License GitHub Workflow Status View

使用方法

使用默认配置

from pg_logger import Logger

logger = Logger()

logger.info("info log")
logger.success("success log")

自定义配置 Logger

from pg_logger import Logger, LoggerConfig

logger = Logger(
    LoggerConfig(
        width=120,
        keywords=['GET', 'PUT', 'POST']
    )
)

logger.info("[GET] info log")
logger.success("[PUT] success log")

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

paigram_logger-0.0.2.tar.gz (19.3 kB view hashes)

Uploaded Source

Built Distribution

paigram_logger-0.0.2-py3-none-any.whl (19.6 kB view hashes)

Uploaded Python 3

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