Class: Eye::Logger::InnerLogger
- Inherits:
-
Eye::Logger
- Object
- Eye::Logger
- Eye::Logger::InnerLogger
- Defined in:
- lib/eye/logger.rb
Constant Summary collapse
- FORMAT =
'%Y.%m.%d %H:%M:%S'.freeze
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.
11 12 13 14 15 16 17 |
# File 'lib/eye/logger.rb', line 11 def initialize(*args) super self.formatter = proc do |s, d, _p, m| "#{d.strftime(FORMAT)} #{s.ljust(5)} -- #{m}\n" end end |