Skip to main content

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

Download files

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

Source Distribution

console-logging-0.0.5.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

console_logging-0.0.5.0-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file console-logging-0.0.5.0.tar.gz.

File metadata

File hashes

Hashes for console-logging-0.0.5.0.tar.gz
Algorithm Hash digest
SHA256 112818db84663a194ca445ea17413f98fecbb979605951f6d232e6536a9b5263
MD5 6993201f0f714983f2c13ee4bcd2739a
BLAKE2b-256 1d1cebfe74dbbffa975d7f6e426c1ee367a286b3522baf3703032f9567d64702

See more details on using hashes here.

File details

Details for the file console_logging-0.0.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for console_logging-0.0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f41a11667c200adefdf9a346a914aeb9d6b919915a0bbc3a69f88ecd3e72d8e0
MD5 d3295fda6c3388456ac4eb9472f6e448
BLAKE2b-256 52373031196e48f40a209989ed85f3fa6afa10b957acd118152ee163eeab305d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.5.0 This release

2 files

0.0.4.0

2 files

0.0.3.8

2 files

0.0.3.7

2 files

0.0.3.6

2 files

0.0.3.5

2 files

0.0.3.4

2 files

0.0.3.3

2 files

0.0.3.2

2 files

0.0.3.1

2 files

0.0.3

2 files

0.0.2.1

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page