<commit_before># Sinatra::TorqueBox::Logging

Sinatra uses Rack::CommonLogger by default, which writes to env['rack.errors'].
This Sinatra extension enables logging to the TorqueBox server.log

## Installation

Add this line to your application's Gemfile:

    gem 'sinatra-torquebox-logging'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install sinatra-torquebox-logging

## Usage

    require 'sinatra/torquebox/logging'
    class MyApp < Sinatra::Base
      configure do
        register Sinatra::TorqueBox::Logging
      end
      get('/') do
        logger.info 'Message will show up in TorqueBox server.log'
      end
    end

## Todo
1. Avoid monkey patching sinatras internals
2. Add the ability to change the log level

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)<commit_msg>Not yet released on rubygems.org<commit_after># Sinatra::TorqueBox::Logging

Sinatra uses Rack::CommonLogger by default, which writes to env['rack.errors'].
This Sinatra extension enables logging to the TorqueBox server.log

## Installation

Add this line to your application's Gemfile:

    gem 'sinatra-torquebox-logging', :git => 'git://github.com/AncientLeGrey/sinatra-torquebox-logging.git'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install sinatra-torquebox-logging (not yet released on rubygems.org)

## Usage

    require 'sinatra/torquebox/logging'
    class MyApp < Sinatra::Base
      configure do
        register Sinatra::TorqueBox::Logging
      end
      get '/' do
        logger.info 'Message will show up in TorqueBox server.log'
      end
    end

## Todo
1. Avoid monkey patching sinatras internals
2. Add the ability to change the log level

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
{'fraction_non_alphanumeric': 0.08401084010840108, 'fraction_numerical': 0.004336043360433604, 'mean_word_length': 3.4375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '1705901', 'n_tokens_mistral': 570, 'n_tokens_neox': 548, 'n_words': 198}