log

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(s string, args ...interface{})

func Error

func Error(s string, args ...interface{})

func Error_skip

func Error_skip(calldepth int, s string, args ...interface{})

func Info

func Info(s string, args ...interface{})

func Info_skip

func Info_skip(calldepth int, s string, args ...interface{})

func SetDefaultLogger

func SetDefaultLogger(logger Logger)

func SetLogLevel

func SetLogLevel(level LogLevel)

Types

type LogLevel

type LogLevel uint8
const (
	ErrorLevel LogLevel = 1
	InfoLevel  LogLevel = 2
	DebugLevel LogLevel = 3
)

type Logger

type Logger interface {
	Infof(s string, args ...interface{})
	Errorf(s string, args ...interface{})
	Debugf(s string, args ...interface{})
	Output(calldepth int, s string) error
}

type StdLogger

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

func NewStdLogger

func NewStdLogger() *StdLogger

func (*StdLogger) Debugf

func (l *StdLogger) Debugf(s string, args ...interface{})

func (*StdLogger) Errorf

func (l *StdLogger) Errorf(s string, args ...interface{})

func (*StdLogger) Infof

func (l *StdLogger) Infof(s string, args ...interface{})

func (*StdLogger) Output

func (l *StdLogger) Output(calldepth int, s string) error

Jump to

Keyboard shortcuts

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