Class: Eye::Logger::InnerLogger
- Inherits:
-
Eye::Logger
- Object
- Eye::Logger
- Eye::Logger::InnerLogger
- Defined in:
- lib/eye/logger.rb
Constant Summary collapse
- FORMAT =
'%d.%m.%Y %H:%M:%S'
Instance Attribute Summary
Attributes inherited from Eye::Logger
Instance Method Summary collapse
-
#initialize(*args) ⇒ InnerLogger
constructor
A new instance of InnerLogger.
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 |