<commit_before>[![Build Status](https://travis-ci.org/cdumay/djehouty.svg?branch=master)](https://travis-ci.org/cdumay/djehouty)

# Djehouty

Djehouty is intended to be a set of logging formatters and handlers to easily send log entries.

This package includes:

* for [GELF](https://www.graylog.org/resources/gelf/):
    
    * a TCP/TLS handler to send log entries over TCP with TLS support
    * a formatter to convert logging record into GELF(1.1).

* for [LTSV](http://ltsv.org/):
    
    * a TCP/TLS handler to send log entries over TCP with TLS support
    * a formatter to convert logging record into LTSV.

## Install

### Using pip

You can use pip to install Djehouty, make sure you have the latest version:

    sh-4.2# pip install --upgrade pip
    [...]
    Successfully installed pip-7.1.2
    
    sh-4.2# pip install --upgrade djehouty
    [...]
    Successfully installed djehouty-0.1.0 setuptools-18.3.1

### Using sources

You can install from sources too:

    sh-4.2$ git clone <EMAIL>:cdumay/djehouty.git
    Cloning into 'djehouty'...
    remote: Counting objects: 58, done.
    remote: Compressing objects: 100% (53/53), done.
    remote: Total 58 (delta 26), reused 0 (delta 0)<commit_msg>OVH repo<commit_after>[![Build Status](https://travis-ci.org/cdumay/djehouty.svg?branch=master)](https://travis-ci.org/cdumay/djehouty)

# Djehouty

Djehouty is intended to be a set of logging formatters and handlers to easily send log entries.

This package includes:

* for [GELF](https://www.graylog.org/resources/gelf/):
    
    * a TCP/TLS handler to send log entries over TCP with TLS support
    * a formatter to convert logging record into GELF(1.1).

* for [LTSV](http://ltsv.org/):
    
    * a TCP/TLS handler to send log entries over TCP with TLS support
    * a formatter to convert logging record into LTSV.

## Install

### Using pip

You can use pip to install Djehouty, make sure you have the latest version:

    sh-4.2# pip install --upgrade pip
    [...]
    Successfully installed pip-7.1.2
    
    sh-4.2# pip install --upgrade djehouty
    [...]
    Successfully installed djehouty-0.1.0 setuptools-18.3.1

### Using sources

You can install from sources too:

    sh-4.2$ git clone <EMAIL>:ovh/djehouty.git
    Cloning into 'djehouty'...
    remote: Counting objects: 58, done.
    remote: Compressing objects: 100% (53/53), done.
    remote: Total 58 (delta 26), reused 0 (delta 0)
{'fraction_non_alphanumeric': 0.11468646864686469, 'fraction_numerical': 0.027227722772277228, 'mean_word_length': 3.0687919463087248, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '2507650', 'n_tokens_mistral': 877, 'n_tokens_neox': 834, 'n_words': 272}