Sha256: da347495a0e1ae9e6ee99951a06de8047ff80df083f0f1d4c70fb8c79b318f84
Contents?: true
Size: 412 Bytes
Versions: 3
Compression:
Stored size: 412 Bytes
Contents
require 'scrolls' require 'logfmt' module Vault::Test::LoggingHelpers def setup super Scrolls.init( global_context: {app: 'test_app'}, time_unit: 'milliseconds' ) Scrolls.stream = StringIO.new @last_logline = nil @last_logdata = nil end def logline @last_logline ||= Scrolls.stream.string end def logdata @last_logdata ||= Logfmt.parse(logline) end end
Version data entries
3 entries across 3 versions & 1 rubygems