Class: Statue::LoggerBackend

Inherits:
Struct
  • Object
show all
Defined in:
lib/statue/backends/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject

Returns the value of attribute logger

Returns:

  • (Object)

    the current value of logger



2
3
4
# File 'lib/statue/backends/logger.rb', line 2

def logger
  @logger
end

Instance Method Details

#collect_metric(metric) ⇒ Object Also known as: <<



4
5
6
# File 'lib/statue/backends/logger.rb', line 4

def collect_metric(metric)
  logger.info("Statue") { metric.to_s }
end