logrus

package
v0.0.6-rc.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptLogrus

func AdaptLogrus(logr *logrus.Logger, logger log.Logger, level log.Level, opts ...Option)

AdaptLogrus replaces logr formatter by wrapped logger

func AdaptStandardLogger

func AdaptStandardLogger(logger log.Logger, level log.Level, opts ...Option)

AdaptStandardLogger replaces logrus.StandardLogger() formatter by wrapped logger

func SetLevel

func SetLevel(level log.Level)

Types

type LogrusAdapter

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

func (*LogrusAdapter) Format

func (a *LogrusAdapter) Format(entry *logrus.Entry) ([]byte, error)

type Option

type Option func(*LogrusAdapter)

func ConvertPrefix

func ConvertPrefix() Option

func DontAdaptCallstack

func DontAdaptCallstack() Option

Jump to

Keyboard shortcuts

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