Skip to content

danielfarrell/common_event_formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CEE/Lumberjack log formatter for Ruby/Rails

Both rsyslog and syslog-ng support CEE in their latest versions. This allows you to format your Ruby/Rails logs in that format.

The envisioned use is to output your logs in CEE format to STDOUT and have your running environment pipe them to a logger command.

What is CEE/Lumberjack?

CEE is short for Common Event Expression. It is a structured format for logs. Lumberjack is a project to implement and standardize around CEE.

Rails Example Config

Gemfile

gem "common_event_formatter"

config/application.rb

config.logger = Logger.new($stdout)
config.logger.formatter = CommonEventFormatter.new

config/unicorn.rb (for those using unicorn)

require "common_event_formatter"
Configurator::DEFAULTS[:logger].formatter = CommonEventFormatter.new 

About

CEE/Lumberjack log formatter for Ruby/Rails

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages