Module: Ayl::Logging
Instance Method Summary collapse
Instance Method Details
#log_call(method) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/ayl/logging.rb', line 6 def log_call(method) logger.debug "#{self.class.name} invoking #{method}" yield ensure logger.debug "#{self.class.name} done invoking #{method}" end |
#logger ⇒ Object
4 |
# File 'lib/ayl/logging.rb', line 4 def logger() Logger.instance end |