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

Uploaded Source

Built Distribution

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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for cologs-0.1.tar.gz
Algorithm Hash digest
SHA256 e60e5911beffb5b8b83d1a9b0255b97eae2d71693c48028004dcbc613d803767
MD5 f3d3f1e6109ae9641522445abb8c2b86
BLAKE2b-256 21ad0518a179d6b71f2573f3ffbafa027ca3f34ff3cffb650e84936a5395972e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cologs-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 abed53e58379df4f2eba039025f544c6e26d61c544544edff93133f996bb7027
MD5 4ef6a1911676d6a90c89ba36af0ecc8b
BLAKE2b-256 a8c255af6dba41b8317c8a5fa517eecab9e16392dda01fb0821f010b24145030

See more details on using hashes here.

Supported by

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