module LogUtils::Logging
use it like
class SampleClass include LogUtils::Logging ... end or include LogUtils class SampleClass include Logging ... end class AnotherSampleClass include Logging ... def sample_method logger.debug "calling sample_method" end end
Public Instance Methods
logger()
click to toggle source
# File lib/logutils.rb, line 73 def logger @logger ||= LogKernel::Logger[ self ] end