<commit_before># LtsvLoggerFormatter

[![Build Status](https://travis-ci.org/ryu39/ltsv_logger_formatter.svg?branch=master)](https://travis-ci.org/ryu39/ltsv_logger_formatter)

A simple ruby logger formatter for logging in [LTSV](http://ltsv.org/) format.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'ltsv_logger_formatter'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ltsv_logger_formatter

## Usage

Set your logger formatter and call with hash object.

```ruby<commit_msg>Add codeclimate badge to README<commit_after># LtsvLoggerFormatter

[![Build Status](https://travis-ci.org/ryu39/ltsv_logger_formatter.svg?branch=master)](https://travis-ci.org/ryu39/ltsv_logger_formatter)
[![Code Climate](https://codeclimate.com/github/ryu39/ltsv_logger_formatter/badges/gpa.svg)](https://codeclimate.com/github/ryu39/ltsv_logger_formatter)
[![Issue Count](https://codeclimate.com/github/ryu39/ltsv_logger_formatter/badges/issue_count.svg)](https://codeclimate.com/github/ryu39/ltsv_logger_formatter)

A simple ruby logger formatter for logging in [LTSV](http://ltsv.org/) format.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'ltsv_logger_formatter'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ltsv_logger_formatter

## Usage

Set your logger formatter and call with hash object.

```ruby
{'fraction_non_alphanumeric': 0.12368236120871398, 'fraction_numerical': 0.011243851018973999, 'mean_word_length': 5.4434389140271495, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '6553062', 'n_tokens_mistral': 532, 'n_tokens_neox': 488, 'n_words': 103}