Class: Logbert::Handlers::LocaltimeFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/logbert/handlers/time_rotator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(format = "%Y-%m-%d-%H%M") ⇒ LocaltimeFormatter

Returns a new instance of LocaltimeFormatter.



13
14
15
# File 'lib/logbert/handlers/time_rotator.rb', line 13

def initialize(format = "%Y-%m-%d-%H%M")
  @format = format
end

Instance Attribute Details

#format(time) ⇒ Object

Returns the value of attribute format.



11
12
13
# File 'lib/logbert/handlers/time_rotator.rb', line 11

def format
  @format
end