Module: Opsmgr::Loggable
- Defined in:
- lib/opsmgr/log.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(other_module) ⇒ Object
19 20 21 22 23 |
# File 'lib/opsmgr/log.rb', line 19 def self.included(other_module) def other_module.log @logger ||= LoggerWithProgName.new(name) end end |
Instance Method Details
#log ⇒ Object
15 16 17 |
# File 'lib/opsmgr/log.rb', line 15 def log @logger ||= LoggerWithProgName.new(self.class.name) end |