Skip to main content

Better, prettier commandline logging.

Project description

console-logging===============|Codeship Status for pshah123/console-logging| |PyPI version| |CodacyBadge|Better console logging for Python.Find us on PyPi: figure:: :alt: Demo of console-logging ShowcaseGetting 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.")"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/``.Credit~~~~~~- ``termcolor`` module for colors.. |Codeship Status for pshah123/console-logging| image:: :target: |PyPI version| image:: :target: |Codacy Badge| image:: :target:

Project details

Download files

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

Files for console-logging, version
Filename, size File type Python version Upload date Hashes
Filename, size console_logging- (5.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size console-logging- (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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