A Log4r appender for logging to a gelf sink, e.g. the graylog2 server
Ruby
Failed to load latest commit information.
lib Preparing the 1.1.0 release. Jan 7, 2014
spec
.gitignore ignores Mar 28, 2012
.travis.yml enable travis Apr 24, 2012
CHANGELOG Preparing the 1.1.0 release. Jan 7, 2014
Gemfile
LICENSE Add license Aug 19, 2011
README.md travis status Apr 27, 2012
Rakefile
log4r-gelf.gemspec require gelf 1.4.0 or greater Nov 27, 2013

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