Module: Lumber::LoggerSupport
- Defined in:
- lib/lumber/logger_support.rb
Overview
Include this module to add a logger accessible from both class and instance methods. A logger heirarchy will be created if the class including this module is nested
Class Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
7 8 9 |
# File 'lib/lumber/logger_support.rb', line 7 def self.included(receiver) Lumber.setup_logger_hierarchy(receiver.name, "#{Lumber::BASE_LOGGER}::#{receiver.name}") end |