Sha256: 5654f902b780cf0e68e1fdb533d550756f1034162b39bc53275ddd585b0bd07f

Contents?: true

Size: 185 Bytes

Versions: 1

Compression:

Stored size: 185 Bytes

Contents

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

  def batch(logs)
    self.message = logs
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
semantic_logger-4.2.0 test/in_memory_batch_appender.rb