Adds the ‘around_level’ method to Logger.
Methods
Class Public methods
Source: show
# File rails/activesupport/lib/active_support/core_ext/logger.rb, line 4 def self.define_around_helper(level) module_eval " def around_#{level}(before_message, after_message, &block) self.#{level}(before_message) return_value = block.call(self) self.#{level}(after_message) return return_value end " end
Instance Public methods
Source: show
# File rails/activerecord/examples/shared_setup.rb, line 6 def format_message(severity, timestamp, msg, progname) "#{msg}\n" end