module SISFC::Logging
Public Class Methods
included(base)
click to toggle source
# File lib/sisfc/logger.rb, line 14 def self.included(base) class << base # this version of the logger method will be called from class methods def logger Logging.logger end end end
logger()
click to toggle source
# File lib/sisfc/logger.rb, line 9 def logger @logger ||= ::Logger.new(STDERR).tap{|l| l.level = ::Logger::INFO } end
Public Instance Methods
logger()
click to toggle source
this version of the logger method will be called from instance methods
# File lib/sisfc/logger.rb, line 24 def logger Logging.logger end