Class: Gallus::Format::SimpleConsole
- Inherits:
-
Object
- Object
- Gallus::Format::SimpleConsole
- Defined in:
- lib/gallus/format/simple_console.rb
Instance Method Summary collapse
Instance Method Details
#call(event) ⇒ Object
4 5 6 7 8 |
# File 'lib/gallus/format/simple_console.rb', line 4 def call(event) parts = [ [ event., event.payload ].compact.join('; ') ] parts.unshift(format("%s:", event.level.name)) unless event.level == Level::INFO parts.compact.join(' ') end |