Module: LoggingLibrary::Mixins::Loggable
- Defined in:
- lib/logging_library/mixins/loggable.rb
Overview
Mixin for adding a lazily-instantiated logger
attribute to your class, with reasonable defaults based on the class name.
Instance Method Summary collapse
Instance Method Details
#logger ⇒ Object
7 8 9 |
# File 'lib/logging_library/mixins/loggable.rb', line 7 def logger @logger ||= LoggerFactory.create(_logger_name) end |