Skip to content

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

License

Notifications You must be signed in to change notification settings

wr0ngway/log4r-gelf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages