logger

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLoggerLevel added in v0.4.0

func GetLoggerLevel(loggerName string) (logrus.Level, error)

func GetLoggerNames added in v0.4.0

func GetLoggerNames() []string

func NewFileLogger added in v0.5.0

func NewFileLogger(pkgSubsys string) *logrus.Entry

NewFileLogger don't output log to stdout

func NewLoggerScope added in v0.5.0

func NewLoggerScope(scope string) *logrus.Entry

NewLoggerScope allocates a new log entry for a specific scope.

func SetLoggerLevel added in v0.4.0

func SetLoggerLevel(loggerName string, level logrus.Level) error

func StartRingBufReader added in v0.4.0

func StartRingBufReader(ctx context.Context, mode string, bpfFsPath string) error

print bpf log in daemon process

Types

type LogEvent added in v0.4.0

type LogEvent struct {
	Msg string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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