基于Zap整合的日志框架,可自由组合输出到Console、File、Loki
.gitignore | ||
config.go | ||
console.go | ||
file.go | ||
go.mod | ||
go.sum | ||
logger_test.go | ||
logger.go | ||
loki.go | ||
readme.md |
Logger
基于Zap整合的日志框架,可自由组合输出到Console、File、Loki
Demo
package main
import "gitee.ltd/lxh/logger"
func main() {
logger.InitLogger(logger.LogConfig{Mode: logger.Dev, LokiEnable: false, FileEnable: true})
logger.Say.Debug("芜湖")
}