Sha256: e001ec6630cc32c798d4a436de00f91fa3dd59a3679368ce114a138f359b2257
Contents?: true
Size: 784 Bytes
Versions: 3
Compression:
Stored size: 784 Bytes
Contents
# frozen_string_literal: true require "pact/ffi/logger" module Sbmt module Pact module Native module Logger LOG_LEVELS = { off: PactFfi::FfiLogLevelFilter["LOG_LEVEL_OFF"], error: PactFfi::FfiLogLevelFilter["LOG_LEVEL_ERROR"], warn: PactFfi::FfiLogLevelFilter["LOG_LEVEL_WARN"], info: PactFfi::FfiLogLevelFilter["LOG_LEVEL_INFO"], debug: PactFfi::FfiLogLevelFilter["LOG_LEVEL_DEBUG"], trace: PactFfi::FfiLogLevelFilter["LOG_LEVEL_TRACE"] }.freeze def self.log_to_stdout(log_level) raise "invalid log level for PactFfi::FfiLogLevelFilter" unless LOG_LEVELS.key?(log_level) PactFfi::Logger.log_to_stdout(LOG_LEVELS[log_level]) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sbmt-pact-0.12.2 | lib/sbmt/pact/native/logger.rb |
sbmt-pact-0.12.1 | lib/sbmt/pact/native/logger.rb |
sbmt-pact-0.12.0 | lib/sbmt/pact/native/logger.rb |