lib/semantic_logger/loggable.rb in semantic_logger-3.2.1 vs lib/semantic_logger/loggable.rb in semantic_logger-3.3.0

- old
+ new

@@ -32,9 +32,14 @@ # Returns [SemanticLogger::Logger] class level logger def self.logger @semantic_logger ||= SemanticLogger[self] end + # Replace instance class level logger + def self.logger=(logger) + @semantic_logger = logger + end + # Returns [SemanticLogger::Logger] instance level logger def logger @semantic_logger ||= self.class.logger end