log

package
v0.2.37 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelDebug = "Debug"
	LevelInfo  = "Info"
	LevelWarn  = "Warn"
	LevelError = "Error"
)

Variables

This section is empty.

Functions

func Debug

func Debug(msg interface{})

func DebugDo

func DebugDo(f func())

func Debugf

func Debugf(format string, msg ...interface{})

func Error

func Error(msg interface{})

func Errorf

func Errorf(format string, msg ...interface{})

func Info

func Info(msg interface{})

func Infof

func Infof(format string, msg ...interface{})

func IsDebug

func IsDebug() bool

func Warn

func Warn(msg interface{})

func Warnf

func Warnf(format string, msg ...interface{})

Types

type CustomLogger added in v0.2.21

type CustomLogger struct {
}

func (*CustomLogger) Error added in v0.2.21

func (l *CustomLogger) Error(ctx context.Context, s string, i ...interface{})

func (*CustomLogger) Info added in v0.2.21

func (l *CustomLogger) Info(ctx context.Context, s string, i ...interface{})

func (*CustomLogger) LogMode added in v0.2.21

func (l *CustomLogger) LogMode(level logger.LogLevel) logger.Interface

func (*CustomLogger) Trace added in v0.2.21

func (l *CustomLogger) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error)

func (*CustomLogger) Warn added in v0.2.21

func (l *CustomLogger) Warn(ctx context.Context, s string, i ...interface{})

Jump to

Keyboard shortcuts

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