lib/semantic_logger/loggable.rb in semantic_logger-4.8.1 vs lib/semantic_logger/loggable.rb in semantic_logger-4.8.2

- old
+ new

@@ -30,10 +30,17 @@ # ExternalSupplier.prepend SemanticLogger::Loggable module SemanticLogger module Loggable def self.included(base) base.extend ClassMethods + base.singleton_class.class_eval do + undef_method :logger if method_defined?(:logger) + undef_method :logger= if method_defined?(:logger=) + end base.class_eval do + undef_method :logger if method_defined?(:logger) + undef_method :logger= if method_defined?(:logger=) + # Returns [SemanticLogger::Logger] class level logger def self.logger @semantic_logger ||= SemanticLogger[self] end