Module: NRSER::Log::Mixin::ClassMethods

Defined in:
lib/nrser/log/mixin.rb

Overview

Methods to mix into the including class.

Instance Method Summary collapse

Instance Method Details

#loggerObject

Returns [SemanticLogger::Logger] class level logger



31
32
33
# File 'lib/nrser/log/mixin.rb', line 31

def logger
  @semantic_logger ||= create_logger
end

#logger=(logger) ⇒ Object

Replace instance class level logger



36
37
38
# File 'lib/nrser/log/mixin.rb', line 36

def logger= logger
  @semantic_logger = logger
end