Sha256: 98a8812b49888d8d63a3b22eed3fc2725372b4e479728d8f0e646e6fd8d4c8f9

Contents?: true

Size: 175 Bytes

Versions: 4

Compression:

Stored size: 175 Bytes

Contents

# Store in memory the last log message received.
class InMemoryAppender < SemanticLogger::Subscriber
  attr_accessor :message

  def log(log)
    self.message = log
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
semantic_logger-4.3.1 test/in_memory_appender.rb
semantic_logger-4.3.0 test/in_memory_appender.rb
semantic_logger-4.2.2 test/in_memory_appender.rb
semantic_logger-4.2.1 test/in_memory_appender.rb