Module: LogUtils::Logging
- Defined in:
- lib/logutils.rb
Overview
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
Instance Method Summary collapse
Instance Method Details
#logger ⇒ Object
73 74 75 |
# File 'lib/logutils.rb', line 73 def logger @logger ||= LogKernel::Logger[ self ] end |