Class: Statue::LoggerBackend
- Inherits:
-
Struct
- Object
- Struct
- Statue::LoggerBackend
- Defined in:
- lib/statue/backends/logger.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
- #collect_metric(metric) ⇒ Object (also: #<<)
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute 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 |