No commit activity in last 3 years
No release in over 3 years
Format logs in the CEE/lumberjack structured format
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 0
 Project Readme

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