internal

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.0.8

func New(prefix string, writer loger.Writer, config loger.Config, handle func(b []byte)) loger.Interface

New initialize CustomLogger

Types

type CustomLogger added in v0.0.8

type CustomLogger struct {
	loger.Writer
	loger.Config
	// contains filtered or unexported fields
}

func (*CustomLogger) Error added in v0.0.8

func (l *CustomLogger) Error(_ context.Context, msg string, data ...interface{})

Error print error messages

func (*CustomLogger) Info added in v0.0.8

func (l *CustomLogger) Info(_ context.Context, msg string, data ...interface{})

Info print info

func (*CustomLogger) LogMode added in v0.0.8

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

LogMode log mode

func (*CustomLogger) Trace added in v0.0.8

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

Trace print sql message

func (*CustomLogger) Warn added in v0.0.8

func (l *CustomLogger) Warn(_ context.Context, msg string, data ...interface{})

Warn print warn messages

type CustomWriter added in v0.1.1

type CustomWriter struct{}

func (*CustomWriter) Write added in v0.1.1

func (cw *CustomWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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