internal

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 7 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(writer loger.Writer, config loger.Config, loggerHandle 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(_ 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 LoggerEventEntity added in v0.0.8

type LoggerEventEntity struct {
	Statement string `json:"statement"`
	Result    string `json:"result"`
	Level     string `json:"level"`
	Timer     string `json:"timer"`
	Type      string `json:"type"`
}

Jump to

Keyboard shortcuts

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