Skip to main content

cleanlog

Python package for nice colored logs.

Installation

pip install cleanlog

At a glance

# log.py
import cleanlog

logger = cleanlog.ColoredLogger('mylogger')
# Note that since cleanlog just wraps built-in logging module,
# this is equivalent to logger.setLevel(logging.DEBUG).
logger.setLevel(cleanlog.DEBUG)

logger.critical('A critical message.')
logger.error('An error message.')
logger.warning('A warning message.')
logger.info('An info message.')
logger.debug('A debug message.')

log.py

TODO

  • Implement cleanlog.BasicLogger.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cleanlog-0.1.8.tar.gz (11.9 kB view details)

Uploaded Source

File details

Details for the file cleanlog-0.1.8.tar.gz.

File metadata

  • Download URL: cleanlog-0.1.8.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

File hashes

Hashes for cleanlog-0.1.8.tar.gz
Algorithm Hash digest
SHA256 e4e390327dc7efb40c70fcc13a16ed3c0a33bb8bb34de5a00f2df930941ced98
MD5 bda01da22bbd000fbe9eaa46eab9c34b
BLAKE2b-256 f77a9551cb88b8fe7fd102cb7547d4f0e3bf035a2f2f06be7b18b182ecd19925

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.8 This release

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page