Skip to main content

A simple pretty Python logging interface.

Project description

License PyPI version

EzColorLog

EzColorLog is a simple pretty Python logging interface.

Installation

pip install ezcolorlog

Usage

Basic Root Logger Usage

from ezcolorlog import root_loggger as logger

logger.info('This is a log message')
logger.debug('This is a debug message')
logger.warning('This is a warning message')
logger.error('This is an error message')
logger.critical('This is a critical message')

Basic Logger Usage

import logging
from ezcolorlog import root_logger, setup_logging, log_stdout

root_logger.info('Setting up logging...')
logger = logging.getLogger("my_logger")

logger.info('This is a log message')
logger.debug('This is a debug message')
logger.warning('This is a warning message')
logger.error('This is an error message')
logger.critical('This is a critical message')

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

EzColorLog-1.0.3.tar.gz (11.9 kB view hashes)

Uploaded Source

Built Distribution

EzColorLog-1.0.3-py3-none-any.whl (9.7 kB view hashes)

Uploaded 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