<commit_before>RubyLogReveal
=============

Ruby Log Reveal allows log messages to be sent to LogReveal using the HTTPS API.

It can be used instead of the default Ruby Logger and will return an instance of Logger.

Usage
-----

    require 'ruby_log_reveal'

    log = RubyLogReveal.new(<INPUT URL>)

    log.warn("A typical Ruby application warning message")

Or

    log.error({ :user_id => 23, :username => "johnsmith", :web_page => "/blog/how-to-build-a-logging-system", :message => "Blog object not found." })


### With Rails

config/environments/production.rb

    RailsApplication::Application.configure do
      config.logger = RubyLogReveal.new(<INPUT URL>)
    end

Bugs
-----

https://github.com/QuarkGluon/ruby_log_reveal/issues

Pull requests welcome
<commit_msg>Further modifications to README.md<commit_after>RubyLogReveal
=============

Ruby Log Reveal allows log messages to be sent to LogReveal (http://logrevealhq.com) using the HTTPS API.

It can be used instead of the default Ruby Logger and will return an instance of Logger.

Usage
-----

RubyLogReveal can send either a string, with severity:

    require 'ruby_log_reveal'
    log = RubyLogReveal.new(<LOGREVEAL_LOGSTREAM_INPUT_URL>)
    log.warn("Your Ruby application warning message")

Or it can utilise a hash for key/value pair logging, again with severity:

    log.error({ :user_id => 23, :username => "johnsmith", :web_page => "/blog/how-to-build-a-logging-system", :message => "Blog object not found." })


### RubyLogReveal and Ruby on Rails

In the 'config/environments/production.rb'

    RailsApplication::Application.configure do
      config.logger = RubyLogReveal.new(<LOGREVEAL_LOGSTREAM_INPUT_URL>)
    end

Bugs
-----

https://github.com/QuarkGluon/ruby_log_reveal/issues

Pull requests welcome

{'fraction_non_alphanumeric': 0.1171875, 'fraction_numerical': 0.002232142857142857, 'mean_word_length': 4.022408963585434, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '3123172', 'n_tokens_mistral': 600, 'n_tokens_neox': 544, 'n_words': 170}