log

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfoLogName  = "info.log"
	WarnLogName  = "warn.log"
	ErrorLogName = "error.log"
)

Variables

This section is empty.

Functions

func Error

func Error(args ...interface{})

Error 写入错误日志

func Errorf

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

Errorf 写入格式化的错误日志

func Fatal

func Fatal(args ...interface{})

Fatal 写入致命错误日志并退出程序

func Fatalf

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

Fatalf 写入格式化的致命错误日志并退出程序

func Info

func Info(args ...interface{})

Info 写入信息日志

func Infof

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

Infof 写入格式化的信息日志

func InitLogger

func InitLogger(logDir string, maxSize, maxBackups, maxAge int) error

初始化日志设置

func Warning

func Warning(args ...interface{})

Warning 写入警告日志

func Warningf

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

Warningf 写入格式化的警告日志

Types

This section is empty.

Jump to

Keyboard shortcuts

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