mylog

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v1.2.6

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

func Error added in v1.2.3

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

全局 Error 方法

func Info added in v1.2.3

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

全局 Info 方法

func InitLogger

func InitLogger(logFile string, maxSize, maxBackups, maxAge int, compress bool, level string)

func Sync added in v1.2.3

func Sync()

同步日志

func Warn added in v1.3.10

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

全局 Warn 方法

Types

type Logger

type Logger struct {
	Sugar *zap.SugaredLogger
}

Jump to

Keyboard shortcuts

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