Metadata-Version: 1.1
Name: nicelog
Version: 0.1.7
Summary: Nice colorful formatters for Python logging.
Home-page: http://github.com/rshk/nicelog
Author: Samuele Santi
Author-email: samuele@samuelesanti.com
License: BSD
Description: Nice Log
        ########
        
        .. image:: https://travis-ci.org/rshk/nicelog.svg?branch=master
            :target: https://travis-ci.org/rshk/nicelog
        
        .. image:: https://coveralls.io/repos/rshk/nicelog/badge.png
            :target: https://coveralls.io/r/rshk/nicelog
        
        .. image:: https://pypip.in/v/nicelog/badge.png
            :target: https://crate.io/packages/nicelog/
            :alt: Latest PyPI version
        
        .. image:: https://pypip.in/d/nicelog/badge.png
            :target: https://crate.io/packages/nicelog/
            :alt: Number of PyPI downloads
        
        Provide formatters to nicely display colorful logging output on the console.
        
        `Fork this project on GitHub <https://github.com/rshk/nicelog>`_
        
        Right now, it contains only one formatter, coloring log lines
        depending on the log level and adding nice line prefixes containing
        logger name, but future plans are to add more formatters and allow
        better ways to customize them.
        
        
        Example usage
        =============
        
        .. code-block:: python
        
            from nicelog.formatters import ColorLineFormatter
            import logging
            import sys
        
            logger = logging.getLogger('foo')
            logger.setLevel(logging.DEBUG)
        
            handler = logging.StreamHandler(sys.stderr)
            handler.setFormatter(ColorLineFormatter())
            handler.setLevel(logging.DEBUG)
        
            logger.addHandler(handler)
        
            logger.debug('Debug message')
            logger.info('Info message')
            logger.warning('Warning message')
            logger.error('Error message')
            logger.critical('Critical message')
        
        
        Example output
        ==============
        
        Here it is, in all its glory:
        
        .. image:: https://raw.githubusercontent.com/rshk/nicelog/master/.screenshots/nicelog2.png?v=1
            :alt: Screenshot
        
        If you want to see what it looks like in 256color mode, with all the fields enabled:
        
        .. image:: https://raw.githubusercontent.com/rshk/nicelog/master/.screenshots/nicelog3.png?v=2
            :alt: Screenshot
        
        
        Powerline font support
        ======================
        
        You can set the ``HAS_POWERLINE_FONT`` environment variable to a
        non-null value in order to tell the formatter to use powerline-style
        symbols (specifically, the "arrow" thing).
        
        
        
        Changelog
        =========
        
        v0.1.7
        ------
        
        - Added support for ``message_inline`` argument. If set to ``False``,
          messages will be displayed on their own line (useful when enabling a lot of
          information)
        
        v0.1.6
        ------
        
        - Added support for showing more information:
        
          - record date
          - file name / line number
          - module / function
        
        v0.1.5
        ------
        
        - Added support for nicer colors in 256-color mode
        - Removed dependency from termcolor (now shipping better implementation)
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: BSD License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
