logger

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *logger.Logger

Functions

func ERROR

func ERROR(str string)

func INFO

func INFO(str string)

func InitLogger

func InitLogger(applicationName string)

func WARN added in v0.1.0

func WARN(str string)

Types

type GormLogger

type GormLogger struct {
	LogLevel  gormlogger.LogLevel
	Formatter *easy.Formatter
}

func GetGormLogger

func GetGormLogger() *GormLogger

func (*GormLogger) Error

func (l *GormLogger) Error(ctx context.Context, str string, args ...interface{})

Error prints error messages

func (*GormLogger) Info

func (l *GormLogger) Info(ctx context.Context, str string, args ...interface{})

Info prints info

func (*GormLogger) LogMode

LogMode set log mode

func (*GormLogger) Trace

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

Trace prints trace messages

func (*GormLogger) Warn

func (l *GormLogger) Warn(ctx context.Context, str string, args ...interface{})

Warn prints warn messages

Jump to

Keyboard shortcuts

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