Module: NutritionCalculator::HasLogging
- Defined in:
- lib/nutrition_calculator/has_logging.rb
Overview
Provides a few logging utilities to the including class/module
Instance Attribute Summary collapse
-
#logger ⇒ Logger
The logger to which the including class/module should write.
Instance Attribute Details
#logger ⇒ Logger
The logger to which the including class/module should write
Defaults to a NullLogger, which simply discards all logging attempts as noops.
25 26 27 |
# File 'lib/nutrition_calculator/has_logging.rb', line 25 def logger @logger ||= NullLogger end |