Class: Aho::MetricsLogger

Inherits:
Logger
  • Object
show all
Defined in:
lib/aho/metrics_logger.rb

Constant Summary collapse

TIMESTAMP_FORMAT =
'%Y-%m-%d_%H-%M-%S'

Instance Method Summary collapse

Constructor Details

#initializeMetricsLogger

Returns a new instance of MetricsLogger.



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

def initialize(...)
  super(
    MetricsLogDevice.new(log_file_path, ...),
    formatter: MetricsFormatter.new,
    shift_period_suffix: TIMESTAMP_FORMAT
  )
end