Better, prettier commandline logging.
Project description
Better console logging for Python.
Find us on PyPi: https://pypi.python.org/pypi/console-logging
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for console_logging-0.0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37a6380c28df6d7a2e215a0d553430e934f6064a9a3402af09d9d4df9a66ebc7 |
|
MD5 | 5494ce25c456e02e8aa4b1ff9de2d8c0 |
|
BLAKE2b-256 | bbfed8e29f4b20b2cab9960e5082eca92d5eb7071a2809aa28e737afad1032b1 |