Skip to main content

Colorful and Simple Logger: cologs

Project description

cologs

Build Status PyPI Version

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 get_cologs

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.3.tar.gz (190.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cologs-0.3-py2.py3-none-any.whl (13.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cologs-0.3.tar.gz.

File metadata

  • Download URL: cologs-0.3.tar.gz
  • Upload date:
  • Size: 190.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for cologs-0.3.tar.gz
Algorithm Hash digest
SHA256 a289ca686d23409e134b03020038fa182d807ffd727bc72469d64ef1bd2f0ca2
MD5 f8cf33170d899c1a08cd7ca9fd8a208e
BLAKE2b-256 36d78b9d9ae960712bab41daefcd7f4f52a8fd3f290c51f6508951b8bc319df5

See more details on using hashes here.

File details

Details for the file cologs-0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: cologs-0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for cologs-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6538dde2c1b871816db7c4b0b953c1b8fb314be9d32106e6e45d17e32eb36826
MD5 839c20467f9090cf3900958f2c80672f
BLAKE2b-256 3e646d4685aad2f4997a1e27e3d47f4590c7780c40da47582e196cbe5fb4373d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page