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.fetch("NETSNMP_DEBUG", 1).to_i
Instance Method Summary collapse
Instance Method Details
#initialize_logger(debug: DEBUG, debug_level: DEBUG_LEVEL) ⇒ Object
8 9 10 11 |
# File 'lib/netsnmp/loggable.rb', line 8 def initialize_logger(debug: DEBUG, debug_level: DEBUG_LEVEL, **) @debug = debug @debug_level = debug_level end |