logging

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG = iota
	INFO
	WARNING
	ERROR
	FATAL
)

Variables

View Source
var (
	DBLogSavePath = "runtime/db_logs/" // log文件所在的目录
	DBLogSaveName = "db_log"           // log文件名
	DBLogFileExt  = "log"              // log文件后缀
	DBTimeFormat  = "20060102"         // 时间格式(日期格式)
)
View Source
var (
	LogSavePath = "runtime/logs/" // log文件所在的目录
	LogSaveName = "log"           // log文件名
	LogFileExt  = "log"           // log文件后缀
	TimeFormat  = "20060102"      // 时间格式(日期格式)
)
View Source
var (
	F *os.File

	DefaultCallerDepth = 2
)

Functions

func Debug

func Debug(v ...interface{})

func Error

func Error(v ...interface{})

func Fatal

func Fatal(v ...interface{})

func GetDBLogFileFullPath

func GetDBLogFileFullPath() string

log文件的目录+文件名

func Info

func Info(v ...interface{})

func OpenDBLogFile

func OpenDBLogFile(filePath string) *os.File

func Warn

func Warn(v ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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