Sha256: bcbba57c31f06219a2e639923ebd0f75c39796992cf8b1c941cd9e6a48c61821
Contents?: true
Size: 809 Bytes
Versions: 1
Compression:
Stored size: 809 Bytes
Contents
require 'minitest/shared_description' InMemoryAppenderHelper = shared_description do let :log_message do SemanticLogger.flush appender.message end let :appender do InMemoryAppender.new end let :thread_name do Thread.current.name end let :payload do {session_id: 'HSSKLEU@JDK767', tracking_number: 12345} end let :logger do SemanticLogger['TestLogger'] end let :appender_options do {appender: appender} end let :added_appender do SemanticLogger.add_appender(appender_options) end before do SemanticLogger.default_level = :trace SemanticLogger.backtrace_level = :trace SemanticLogger.flush added_appender end after do SemanticLogger.appenders.each { |appender| SemanticLogger.remove_appender(appender) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
semantic_logger-4.2.0 | test/in_memory_appender_helper.rb |