Module: Sbmt::Pact::Native::Logger
- Defined in:
- lib/sbmt/pact/native/logger.rb
Constant Summary collapse
- 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
Class Method Summary collapse
Class Method Details
.log_to_stdout(log_level) ⇒ Object
18 19 20 21 |
# File 'lib/sbmt/pact/native/logger.rb', line 18 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 |