Class: Eye::Logger::InnerLogger

Inherits:
Eye::Logger show all
Defined in:
lib/eye/logger.rb

Constant Summary collapse

FORMAT =
'%d.%m.%Y %H:%M:%S'

Instance Attribute Summary

Attributes inherited from Eye::Logger

#prefix, #subprefix

Instance Method Summary collapse

Methods inherited from Eye::Logger

inner_logger, link_logger, reopen

Constructor Details

#initialize(*args) ⇒ InnerLogger

Returns a new instance of InnerLogger.



9
10
11
12
13
14
15
# File 'lib/eye/logger.rb', line 9

def initialize(*args)
  super

  self.formatter = Proc.new do |s, d, p, m|
    "#{d.strftime(FORMAT)} #{s.ljust(5)} -- #{m}\n"
  end
end