Go to file
2023-04-02 20:49:19 +08:00
.github/workflows 👷 Update GitHub action 2023-04-02 17:25:54 +08:00
src/pg_logger 🐛 Fix some bugs 2023-04-02 20:48:27 +08:00
.gitignore Initial commit 2023-04-02 14:59:19 +08:00
LICENSE Initial commit 2023-04-02 14:59:19 +08:00
poetry.lock 🔧 Update project configuration. 2023-04-02 16:46:05 +08:00
pyproject.toml 🔖 Release v0.0.2 2023-04-02 20:49:19 +08:00
README.md 📝 Update README.md 2023-04-02 20:46:26 +08:00

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