Skip to main content
Help us improve Python packaging – donate today!

Better, prettier commandline logging.

Project Description

Codeship Status for pshah123/console-logging PyPI version Codacy Badge

Better console logging for Python.

Find us on PyPi: https://pypi.python.org/pypi/console-logging

Demo of console-logging

Showcase

Getting Started

Dependencies

  • Python 2.6+ or Python 3.5+
  • termcolor

Installation

pip install console-logging

If building from source: bash pipe from inside this repo.

Usage

New:

from console_logging.console import Console
console = Console()

console.log("Hello world!")

Old:

from console_logging import console

console.log("Hello World!")

Exhaustive Reference

console.log("This is a log.")
console.error("This is an error.")
console.info("This is some neutral info.")
console.success("This is a success message.")

# If using the new usage:
console.setVerbosity(4) # verbosity from 1 - 5, in order:
'''
[1] Errors
[2] Successes
[3] Logs
[4] Info
[5] Secure
'''
console.mute() # shorthand for setVerbosity(0)

Example

For an exhaustive example, see tests/example.py.

Credit

  • termcolor module for colors

Release history Release notifications

This version
History Node

0.0.5.0

History Node

0.0.4.0

History Node

0.0.3.8

History Node

0.0.3.7

History Node

0.0.3.6

History Node

0.0.3.5

History Node

0.0.3.4

History Node

0.0.3.3

History Node

0.0.3.2

History Node

0.0.3.1

History Node

0.0.3

History Node

0.0.2.1

History Node

0.0.2

History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
console_logging-0.0.5.0-py2.py3-none-any.whl (5.3 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Mar 3, 2018
console-logging-0.0.5.0.tar.gz (3.9 kB) Copy SHA256 hash SHA256 Source None Mar 3, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page