snmplog

package
v0.9.1-0...-94679d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package snmplog provides a GoSNMP logger that wraps our logger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SNMPLogger

type SNMPLogger struct {
	gosnmp.LoggerInterface
	// contains filtered or unexported fields
}

SNMPLogger is a GoSNMP logger interface implementation.

func New

func New(logger log.Component) *SNMPLogger

New creates a new SNMPLogger

func (*SNMPLogger) Print

func (logger *SNMPLogger) Print(v ...interface{})

Print implements gosnmp.LoggerInterface#Print

func (*SNMPLogger) Printf

func (logger *SNMPLogger) Printf(format string, v ...interface{})

Printf implements gosnmp.LoggerInterface#Printf

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL