logging

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPLogHandler

func HTTPLogHandler(next http.Handler) http.Handler

func SetLogLevel

func SetLogLevel(main, usb, mtp, data, lv bool)

Types

type ChildLogger

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

func NewChildLogger

func NewChildLogger(parent *logrus.Logger, prefix string) *ChildLogger

func (*ChildLogger) Debug

func (l *ChildLogger) Debug(args ...interface{})

func (*ChildLogger) Debugf

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

func (*ChildLogger) Error

func (l *ChildLogger) Error(args ...interface{})

func (*ChildLogger) Errorf

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

func (*ChildLogger) Fatal

func (l *ChildLogger) Fatal(args ...interface{})

func (*ChildLogger) Fatalf

func (l *ChildLogger) Fatalf(format string, args ...interface{})

func (*ChildLogger) Info

func (l *ChildLogger) Info(args ...interface{})

func (*ChildLogger) Infof

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

func (*ChildLogger) IsDebug

func (l *ChildLogger) IsDebug() bool

func (*ChildLogger) SetDebug

func (l *ChildLogger) SetDebug(debug bool)

func (*ChildLogger) Warning

func (l *ChildLogger) Warning(args ...interface{})

func (*ChildLogger) Warningf

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

type Children

type Children struct {
	Main *ChildLogger
	USB  *ChildLogger
	MTP  *ChildLogger
	Data *ChildLogger
	LV   *ChildLogger
}

func GetLogger

func GetLogger() *Children

Jump to

Keyboard shortcuts

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