Module: Junkie::Log

Overview

Utility module that includes a logging function ‘log` into the class that includes this mdoule

Instance Method Summary collapse

Instance Method Details

#logLogging.logger

constructs a new Logger for the class

Returns:

  • (Logging.logger)

    returns a Logger instance for the current class



12
13
14
# File 'lib/junkie/log.rb', line 12

def log
  @log ||= Logging.logger[self]
end