Skip to main content

Extremely Simple Logger: cologs

Project description

cologs

A simple colorful wrapper around logger from Python Standard Library with no dependencies. cologs sends its colorful output both to the terminal and into logs/cologs.log. The cologs.log file is rotated inside the logs folder when it gets large enough.

Installation

pip install cologs

Usage

from cologs import write_compressed, read_compressed

cologs = get_cologs()
cologs.debug("Debug message")
cologs.info("Info message")
cologs.warning("Warning message")
cologs.error("Error message")
cologs.critical("Critical message")

STDOUT

cologs output as seen in terminal.

Log File

cologs output as seen in logs/cologs.log file.

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

cologs-0.1.tar.gz (189.4 kB view hashes)

Uploaded Source

Built Distribution

cologs-0.1-py2.py3-none-any.whl (13.4 kB view hashes)

Uploaded Python 2 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