Sha256: 3ed3066f28674d751f5b00b3cb2bad7a3aa0dde0e9414ea04327b658ac1b2186

Contents?: true

Size: 647 Bytes

Versions: 1

Compression:

Stored size: 647 Bytes

Contents

# 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 ##
```ruby
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
```


[Ougai]: https://github.com/tilfin/ougai

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ougai-formatters-inline_readable-1.0.0 README.md