Module: Vault::Test::LoggingHelpers
- Included in:
- Vault::TestCase
- Defined in:
- lib/vault-test-tools/logging_helpers.rb
Instance Method Summary collapse
Instance Method Details
#logdata ⇒ Object
20 21 22 |
# File 'lib/vault-test-tools/logging_helpers.rb', line 20 def logdata @last_logdata ||= Logfmt.parse(logline) end |
#logline ⇒ Object
16 17 18 |
# File 'lib/vault-test-tools/logging_helpers.rb', line 16 def logline @last_logline ||= Scrolls.stream.string end |
#setup ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/vault-test-tools/logging_helpers.rb', line 5 def setup super Scrolls.init( global_context: {app: 'test_app'}, time_unit: 'milliseconds' ) Scrolls.stream = StringIO.new @last_logline = nil @last_logdata = nil end |