Ougai::Inline::Readable
Ougai is an amazing structured logger for Ruby. But its Readable formatter,
best used in development, is a little annoying because it spams out additional
structured data onto many lines. Ougai::Inline::Readable instead uses #inspect
to put your structured data on a single line.
Usage
require 'ougai'
require 'ougai/formatters/inline_readable'
logger = Ougai::Logger.new
logger.formatter = Ougai::Formatters::InlineReadable.new
logger.info "This is a test message."
logger.debug msg: "This is a message with structured data.", foo: 5, bar: 10