Class: Mack::Logging::BasicLayout

Inherits:
Logging::Layout show all
Defined in:
lib/mack/boot/logging/basic_layout.rb

Overview

:nodoc:

Direct Known Subclasses

ColorLayout

Instance Method Summary collapse

Methods inherited from Logging::Layout

#footer, #header, #initialize

Constructor Details

This class inherits a constructor from Logging::Layout

Instance Method Details

#format(event) ⇒ Object



6
7
8
9
# File 'lib/mack/boot/logging/basic_layout.rb', line 6

def format(event)
  obj = format_obj(event.data)
  sprintf("%*s:\t[%s]\t%s\n", ::Logging::MAX_LEVEL_LENGTH, ::Logging::LNAMES[event.level], Time.now.strftime(configatron.mack.log.time_format), obj)
end