module EnvUtils
Module containing environment utilities for cli-proton-ruby clients
Public Class Methods
set_log_lib_env(level)
click to toggle source
Function to set environment variable for client library logging
Parameters¶ ↑
- level
-
log level to set and use
# File lib/utils/env_utils.rb, line 23 def self.set_log_lib_env(level) case level when "TRANSPORT_FRM" ENV['PN_TRACE_FRM'] = "true" when "TRANSPORT_RAW" ENV['PN_TRACE_RAW'] = "true" when "TRANSPORT_DRV" ENV['PN_TRACE_DRV'] = "true" when "NONE" else raise ArgumentError, "Invalid client library logging level: #{level}" end end