Go to file
2023-04-02 17:16:11 +08:00
.github/workflows
src/pg_logger
.gitignore
LICENSE
poetry.lock
pyproject.toml 🔖 Publish v0.0.1 2023-04-02 17:16:11 +08:00
README.md 📝 Update README.md 2023-04-02 17:15:00 +08:00

paigram-logger

A logger for PaiGram's projects.

使用方法

使用默认配置

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")