Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Log4r appender for logging to a gelf sink, e.g. the graylog2 server

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec Allow setting context key names, and disable context output when they… June 18, 2012
Octocat-spinner-32 .gitignore ignores March 28, 2012
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 CHANGELOG Preparing the 1.1.0 release. January 07, 2014
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE Add license August 19, 2011
Octocat-spinner-32 README.md travis status April 27, 2012
Octocat-spinner-32 Rakefile initial version February 07, 2011
Octocat-spinner-32 log4r-gelf.gemspec
README.md

A Log4r appender for logging to a gelf sink, e.g. the graylog2 server - http://www.graylog2.org

To use, require the gem before you setup log4r, then add config like the following to your log4r.yml:

log4r_config:
  pre_config:
    root:
      level: 'DEBUG'
  loggers:
    - name: "rails"
      outputters:
        - gelf

  outputters:
    - type: GelfOutputter
      name: gelf
      gelf_server: "<graylog_server_name>"
      gelf_port: "<graylog_server_port>"
      # Optional - showing default values
      # facility: "gelf-rb"
      # host: "#{Socket.gethostname}"
      # max_chunk_size: 'LAN'
      # level: DEBUG

Build Status

Something went wrong with that request. Please try again.