zlog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(template string, args ...interface{})

func DebugWithContext

func DebugWithContext(ctx *gin.Context, template string, args ...interface{})

func Error

func Error(template string, args ...interface{})

func ErrorWithContext

func ErrorWithContext(ctx *gin.Context, template string, args ...interface{})

func Fatal

func Fatal(template string, args ...interface{})

func FatalWithContext

func FatalWithContext(ctx *gin.Context, template string, args ...interface{})

func Info

func Info(template string, args ...interface{})

func InfoWithContext

func InfoWithContext(ctx *gin.Context, template string, args ...interface{})

func InitLogger

func InitLogger()

func Panic

func Panic(template string, args ...interface{})

func PanicWithContext

func PanicWithContext(ctx *gin.Context, template string, args ...interface{})

func Warn

func Warn(template string, args ...interface{})

func WarnWithContext

func WarnWithContext(ctx *gin.Context, template string, args ...interface{})

Types

type LogConfig

type LogConfig struct {
	Path       string `yaml:"path" json:"path" mapstructure:"path"`
	Level      string `yaml:"level" json:"level" mapstructure:"level"`
	MaxSize    int    `yaml:"maxSize" json:"maxSize" mapstructure:"maxSize"`
	MaxBackups int    `yaml:"maxBackups" json:"maxBackups" mapstructure:"maxBackups"`
	MaxAge     int    `yaml:"maxAge" json:"maxAge" mapstructure:"maxAge"`
	Compress   bool   `yaml:"compress" json:"compress" mapstructure:"compress"`
}

Jump to

Keyboard shortcuts

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