logger

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLoggerDir

func GetLoggerDir() string

func NewGormLogger added in v1.2.0

func NewGormLogger(name string, slowThreshold time.Duration, level gormLogger.LogLevel, sender GormLogSender) gormLogger.Interface

func SetLoggerDir

func SetLoggerDir(dir string)

func Use

func Use(filename string) *zap.Logger

Types

type GormLogSender added in v1.2.0

type GormLogSender interface {
	Push(string)
	Open() bool
	Always() bool
}

Jump to

Keyboard shortcuts

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