logKit

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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