logging

package
v0.0.0-...-9b2df44 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerFile

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

func NewLoggerFile

func NewLoggerFile(dir string, filename string) (*LoggerFile, error)

func (*LoggerFile) Close

func (l *LoggerFile) Close()

func (*LoggerFile) Error

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

func (*LoggerFile) GetLogger

func (l *LoggerFile) GetLogger() *log.Logger

func (*LoggerFile) Info

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

func (*LoggerFile) LogMode

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

Implementation of the default Logger interface for gorm

func (*LoggerFile) Printf

func (l *LoggerFile) Printf(format string, v ...interface{})

func (*LoggerFile) Println

func (l *LoggerFile) Println(v ...interface{})

func (*LoggerFile) SetDebug

func (l *LoggerFile) SetDebug()

func (*LoggerFile) SetProd

func (l *LoggerFile) SetProd()

func (*LoggerFile) Trace

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

func (*LoggerFile) Warn

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

Jump to

Keyboard shortcuts

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