<commit_before>####
loggerutils
####
loggerutils 0.0.1

*****
About
*****
This module contains a simple set of tools designed to make logging to
the python built-in logger module easier for some scenarios. Currently it
only contains one class called LogStream. I will probably be expanding
it in the future.

************
Installation
************
::

    $ git clone git://github.com/nickryand/loggerutils.git
    $ cd loggerutils
    $ python setup.py install

*****
Usage
*****
::

    import logging
    import subprocess

    from loggertools.logstream import LogStream

    logging.basicConfig(level=logging.DEBUG)
    logger = logging.getLogger()

    proc = subprocess.Popen(["seq", "-w", "1", "10000"],
                            stdout=subprocess.PIPE)

    info_logstream = LogStream(logger, proc.stdout)
    info_logstream.start()

    proc.wait()
    info_logstream.join()


Copyright (c) 2013 <NAME> <<EMAIL>><commit_msg>Updated README Usage section to cover the arguments available for LogStream<commit_after>####
loggerutils
####
loggerutils 0.0.1

*****
About
*****
This module contains a simple set of tools designed to make logging to
the python built-in logger module easier for some scenarios. Currently it
only contains one class called LogStream. I will probably be expanding
it in the future.

************
Installation
************
::

    $ git clone git://github.com/nickryand/loggerutils.git
    $ cd loggerutils
    $ python setup.py install

*****
Usage
*****
::

    import logging
    import subprocess

    from loggertools.logstream import LogStream

    logging.basicConfig(level=logging.DEBUG)
    logger = logging.getLogger()

    proc = subprocess.Popen(["seq", "-w", "1", "10000"],
                            stdout=subprocess.PIPE)

    info_logstream = LogStream(logger, proc.stdout, level=logging.INFO, close_fds=True)
    info_logstream.start()

    proc.wait()
    info_logstream.join()


Copyright (c) 2013 <NAME> <<EMAIL>>
{'fraction_non_alphanumeric': 0.133502538071066, 'fraction_numerical': 0.013197969543147208, 'mean_word_length': 3.5, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6142662', 'n_tokens_mistral': 589, 'n_tokens_neox': 551, 'n_words': 175}