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

#loggerObject



10
11
12
# File 'lib/logging_library/mixins/loggable.rb', line 10

def logger
  @logger ||= LoggerFactory.create(_logger_name)
end