Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Better, prettier commandline logging.

Project Description

Better console logging for Python.

Find us on PyPi: https://pypi.python.org/pypi/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 History

This version
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 Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
console_logging-0.0.4.0-py2.py3-none-any.whl (5.2 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Oct 14, 2017
console-logging-0.0.4.0.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source Oct 14, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting