3 Star 5 Fork 3

三三物联网/ssiot-core

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
logger.go 447 Bytes
Copy Edit Raw Blame History
三三物联网 authored 2023-04-03 00:22 . 重构
package config
import (
"gitee.com/sansaniot/ssiot-core/logger/tool"
)
type Logger struct {
Type string
Path string
Level string
Stdout string
EnabledDB bool
Cap uint
}
// Setup 设置logger
func (e Logger) Setup() {
logger.SetupLogger(
logger.WithType(e.Type),
logger.WithPath(e.Path),
logger.WithLevel(e.Level),
logger.WithStdout(e.Stdout),
logger.WithCap(e.Cap),
)
}
var LoggerConfig = new(Logger)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sansaniot/ssiot-core.git
git@gitee.com:sansaniot/ssiot-core.git
sansaniot
ssiot-core
ssiot-core
v1.7.9

Search