Metadata-Version: 2.0
Name: console-logging
Version: 0.0.3.8
Summary: Better, prettier commandline logging.
Home-page: https://github.com/pshah123/console-logging
Author: Priansh Shah
Author-email: me@priansh.com
License: MIT
Description-Content-Type: UNKNOWN
Keywords: logging color colors commandline console error timestamp
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Requires-Dist: termcolor
Provides-Extra: dev
Requires-Dist: check-manifest; extra == 'dev'
Provides-Extra: test
Requires-Dist: coverage; extra == 'test'


console-logging
===============

|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

.. figure:: https://github.com/pshah123/console-logging/raw/master/images/example.png
   :alt: 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

.. |Codeship Status for pshah123/console-logging| image:: https://app.codeship.com/projects/aed26890-8fca-0135-1d5e-36d54fbb9242/status?branch=master
   :target: https://app.codeship.com/projects/250054
.. |PyPI version| image:: https://badge.fury.io/py/console-logging.svg
   :target: https://badge.fury.io/py/console-logging
.. |Codacy Badge| image:: https://api.codacy.com/project/badge/Grade/c6656875f3234dfb9ab6bd4aa509ff57
   :target: https://www.codacy.com/app/pshah123/console-logging?utm_source=github.com&utm_medium=referral&utm_content=pshah123/console-logging&utm_campaign=Badge_Grade


