Module: Slaw::Logging

Included in:
Extract::Extractor, Parse::Builder
Defined in:
lib/slaw/logging.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject

Get an instance to a logger configured for the class that includes it. This allows log messages to include the class name



8
9
10
11
12
# File 'lib/slaw/logging.rb', line 8

def logger
  return @logger if @logger
  
  @logger = Log4r::Logger[self.class.name] || Log4r::Logger.new(self.class.name)
end