logging

package
Version: v4.36.9 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeLogger

func InitializeLogger(config schema.LogConfiguration, log bool) error

InitializeLogger configures the default loggers stack levels, formatting, and the output destinations.

func Logger

func Logger() *logrus.Logger

Logger returns the standard logrus logger.

Types

type CtxPrintfLogger added in v4.36.8

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

CtxPrintfLogger is a logger that implements a common Printf logger with a ctx.

func LoggerCtxPrintf added in v4.36.8

func LoggerCtxPrintf(level logrus.Level) (logger *CtxPrintfLogger)

LoggerCtxPrintf returns a new CtxPrintfLogger given a level.

func (*CtxPrintfLogger) Printf added in v4.36.8

func (l *CtxPrintfLogger) Printf(_ context.Context, format string, args ...interface{})

Printf is the implementation of the interface.

type PrintfLogger added in v4.36.8

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

PrintfLogger is a logger that implements a common Printf logger.

func LoggerPrintf added in v4.36.8

func LoggerPrintf(level logrus.Level) (logger *PrintfLogger)

LoggerPrintf returns a new PrintfLogger given a level.

func (*PrintfLogger) Printf added in v4.36.8

func (l *PrintfLogger) Printf(format string, args ...interface{})

Printf is the implementation of the interface.

Jump to

Keyboard shortcuts

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