log

package
Version: v0.0.0-...-42677b3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(zr zerolog.Logger) *logrus.Logger

Wrap return a logrus logger which internally logs to /dev/null. Messages are passed to the underlying zerolog via hooks.

Types

type LogrusWrapper

type LogrusWrapper struct {
	// contains filtered or unexported fields
}

LogrusWrapper around zerolog. Required because konnectd uses logrus internally.

func (*LogrusWrapper) Fire

func (h *LogrusWrapper) Fire(entry *logrus.Entry) error

Fire called by logrus on new message

func (*LogrusWrapper) Levels

func (h *LogrusWrapper) Levels() []logrus.Level

Levels on which logrus hooks should be triggered

Jump to

Keyboard shortcuts

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