log

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug prints the input at debug level 1.

func Debug2

func Debug2(args ...interface{})

Debug2 prints the input at debug level 2.

func Debug2f

func Debug2f(format string, args ...interface{})

Debug2f prints the formatted input at debug level 2.

func Debug3

func Debug3(args ...interface{})

Debug3 prints the input at debug level 3.

func Debug3f

func Debug3f(format string, args ...interface{})

Debug3f prints the formatted input at debug level 3.

func Debugf

func Debugf(format string, args ...interface{})

Debugf prints the formatted input at debug level 1.

func Error

func Error(args ...interface{})

Error prints the input at error level.

func Errorf

func Errorf(format string, args ...interface{})

Errorf prints the formatted input at error level.

func Exitf added in v1.3.0

func Exitf(format string, args ...interface{})

func Info

func Info(args ...interface{})

Info prints the input at info level.

func Infof

func Infof(format string, args ...interface{})

Infof prints the formatted input at info level.

func Warning

func Warning(args ...interface{})

Warning prints the input at warning level.

func Warningf

func Warningf(format string, args ...interface{})

Warningf prints the formatted input at warning level.

Types

type Klogger

type Klogger struct {
	*glog.Logger
}

Klogger extends glog.Logger and implements the github.com/optiopay/kafka.Logger interface.

func (Klogger) Debug

func (l Klogger) Debug(msg string, args ...interface{})

Debug logs a Klogger debug message

func (Klogger) Error

func (l Klogger) Error(msg string, args ...interface{})

Error logs a Klogger error message

func (Klogger) Info

func (l Klogger) Info(msg string, args ...interface{})

Info logs a Klogger info message

func (Klogger) Warn

func (l Klogger) Warn(msg string, args ...interface{})

Warn logs a Klogger warning message

type Logger

type Logger struct {
	*glog.Logger
}

Logger extends glog.Logger and implements the gosnmp.Logger interface.

func WithPrefix

func WithPrefix(pfx string) Logger

WithPrefix returns a new Logger with the given prefix

func (Logger) Print

func (l Logger) Print(v ...interface{})

Print implements the gosnmp.Logger interface. Logs the gosnmp messages at debug level 4.

func (Logger) Printf

func (l Logger) Printf(fmt string, v ...interface{})

Printf implements the gosnmp.Logger interface. Logs the gosnmp messages at debug level 4.

type Writer

type Writer struct{}

Writer is a Writer used by httplogger.CommonLogger for http logging

func (Writer) Write

func (l Writer) Write(b []byte) (int, error)

Write implements the writer interface and sends the input to the logger at debug level.

Jump to

Keyboard shortcuts

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