<commit_before># Remote Syslog Logger

This library providers an [ActiveSupport][] compatible logger that logs 
directly to a remote syslogd via UDP.

[ActiveSupport]: http://as.rubyonrails.org/


# Installation

The easiest way to install `remote_syslog_logger` is with Bundler. Add
`remote_syslog_logger` to your `Gemfile`.

If you are not using a `Gemfile`, run:

    $ [sudo] gem install remote_syslog_logger


# Usage

Use from Rails:

    config.logger = RemoteSyslogLogger.new('syslog.domain.com', 514, :program => "rails-#{RAILS_ENV}")

Use from Ruby:

    $logger = RemoteSyslogLogger.new('syslog.domain.com', 514)

To point the logs to your local system, use `localhost` and ensure that
the system's syslog daemon is bound to `127.0.0.1`.


# Source

Remote Syslog Logger is available on GitHub, which can be browsed at:

<http://github.com/papertrail/remote_syslog_logger>

and cloned with:

    $ git clone git://github.com/papertrail/remote_syslog_logger.git


# Contributing

Once you've made your great commits:

 1. [Fork][fk] `remote_syslog_logger`
 2. Create a topic branch - `git checkout -b my_branch`
 3. Push to your branch - `git push origin my_branch`
 4. Create a Pull Request or an [Issue][is] with a link to your branch
 5. That's it!

You might want to checkout Resque's [Contributing][cb] wiki page for information
on coding standards, new features, etc.


# License

Copyright (c) 2011-2014 <NAME>. See [LICENSE][] for details.
<commit_msg>Added note explaining name resolution issue<commit_after># Remote Syslog Logger

This library providers an [ActiveSupport][] compatible logger that logs 
directly to a remote syslogd via UDP.

[ActiveSupport]: http://as.rubyonrails.org/


# Installation

The easiest way to install `remote_syslog_logger` is with Bundler. Add
`remote_syslog_logger` to your `Gemfile`.

If you are not using a `Gemfile`, run:

    $ [sudo] gem install remote_syslog_logger


# Usage

Use from Rails:

    config.logger = RemoteSyslogLogger.new('syslog.domain.com', 514, :program => "rails-#{RAILS_ENV}")

Use from Ruby:

    $logger = RemoteSyslogLogger.new('syslog.domain.com', 514)

To point the logs to your local system, use `localhost` and ensure that
the system's syslog daemon is bound to `127.0.0.1`.


# Source

Remote Syslog Logger is available on GitHub, which can be browsed at:

<http://github.com/papertrail/remote_syslog_logger>

and cloned with:

    $ git clone git://github.com/papertrail/remote_syslog_logger.git


# Limitations

If the specified host cannot be resolved, `syslog.domain.com` 
in the example under the usage section above, `remote_syslog_logger`
will block for approximatley 20 seconds before displaying an error. 
This could result in the application failing to start or even stop running.

Workarounds for this include:

* use an IP address instead of a hostname. When logging to Papertrail, 
this would disable any kind of redundancy that would normally be 
achieved via round-robin DNS
* use something like [remote_syslog](https://github.com/papertrail/remote_syslog), 
which is an external application that can monitor log files and 
forward them on to a syslog server


# Contributing

Once you've made your great commits:

 1. [Fork][fk] `remote_syslog_logger`
 2. Create a topic branch - `git checkout -b my_branch`
 3. Push to your branch - `git push origin my_branch`
 4. Create a Pull Request or an [Issue][is] with a link to your branch
 5. That's it!

You might want to checkout Resque's [Contributing][cb] wiki page for information
on coding standards, new features, etc.


# License

Copyright (c) 2011-2014 <NAME>. See [LICENSE][] for details.

{'fraction_non_alphanumeric': 0.08664655881546476, 'fraction_numerical': 0.014258294488620784, 'mean_word_length': 4.310043668122271, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5463701', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1101, 'n_words': 452}