Module: NETSNMP::Loggable

Included in:
Message, SecurityParameters, Session
Defined in:
lib/netsnmp/loggable.rb

Constant Summary collapse

DEBUG =
ENV.key?("NETSNMP_DEBUG") ? $stderr : nil
DEBUG_LEVEL =
(ENV["NETSNMP_DEBUG"] || 1).to_i

Instance Method Summary collapse

Instance Method Details

#initialize(debug: DEBUG, debug_level: DEBUG_LEVEL, **opts) ⇒ Object



8
9
10
11
12
# File 'lib/netsnmp/loggable.rb', line 8

def initialize(debug: DEBUG, debug_level: DEBUG_LEVEL, **opts)
  super(**opts)
  @debug = debug
  @debug_level = debug_level
end