Class: Logbert::Handlers::LocaltimeFormatter
- Inherits:
-
Object
- Object
- Logbert::Handlers::LocaltimeFormatter
- Defined in:
- lib/logbert/handlers/log_rotator.rb
Overview
Default Time Formatter #
Instance Attribute Summary collapse
-
#format(time) ⇒ Object
Returns the value of attribute format.
Instance Method Summary collapse
-
#initialize(format = "%Y-%m-%d-%H%M") ⇒ LocaltimeFormatter
constructor
A new instance of LocaltimeFormatter.
Constructor Details
#initialize(format = "%Y-%m-%d-%H%M") ⇒ LocaltimeFormatter
Returns a new instance of LocaltimeFormatter.
16 17 18 |
# File 'lib/logbert/handlers/log_rotator.rb', line 16 def initialize(format = "%Y-%m-%d-%H%M") @format = format end |
Instance Attribute Details
#format(time) ⇒ Object
Returns the value of attribute format.
14 15 16 |
# File 'lib/logbert/handlers/log_rotator.rb', line 14 def format @format end |