logKit

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogConfig

type LogConfig struct {
	LogFilePath string // 日志文件路径
	LogLevel    string // 日志级别
	ShowConsole bool   // 是否显示控制台日志
	MaxSize     int    // 日志文件大小,单位M
	MaxBackups  int    // 最大备份个数
	MaxAge      int    // 最大备份天数
	Compress    bool   // 是否压缩
	LocalTime   bool   // 是否使用本地时间
}

LogConfig 日志配置文件

func (*LogConfig) InitGlobalLogger

func (l *LogConfig) InitGlobalLogger()

InitGlobalLogger 初始化全局日志实例

Jump to

Keyboard shortcuts

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