<commit_before># Hedgelog
[![Gem Version](https://badge.fury.io/rb/hedgelog.svg)](http://badge.fury.io/rb/hedgelog)
[![Build Status](https://travis-ci.org/firespring/hedgelog.svg)](https://travis-ci.org/firespring/hedgelog)
[![Dependency Status](https://gemnasium.com/firespring/hedgelog.svg)](https://gemnasium.com/firespring/hedgelog)

This gem provides an opinionated Ruby logger for writing structured JSON logs. It attempts to maintain compatibility with the standard Ruby logger api while extending it with functionality relevant to JSON logging.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'hedgelog'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install hedgelog

## Basic Usage

```ruby
require 'hedgelog'<commit_msg>Add branch for travis to github readme.<commit_after># Hedgelog
[![Gem Version](https://badge.fury.io/rb/hedgelog.svg)](http://badge.fury.io/rb/hedgelog)
[![Build Status](https://travis-ci.org/firespring/hedgelog.svg?branch=master)](https://travis-ci.org/firespring/hedgelog)
[![Dependency Status](https://gemnasium.com/firespring/hedgelog.svg)](https://gemnasium.com/firespring/hedgelog)

This gem provides an opinionated Ruby logger for writing structured JSON logs. It attempts to maintain compatibility with the standard Ruby logger api while extending it with functionality relevant to JSON logging.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'hedgelog'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install hedgelog

## Basic Usage

```ruby
require 'hedgelog'
{'fraction_non_alphanumeric': 0.12438118811881188, 'fraction_numerical': 0.0, 'mean_word_length': 5.078947368421052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '5719364', 'n_tokens_mistral': 536, 'n_tokens_neox': 508, 'n_words': 141}