3 Star 0 Fork 0

salmon_go / common

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model.go 435 Bytes
一键复制 编辑 原始数据 按行查看 历史
MikeJia 提交于 2021-03-19 15:03 . 增加GORM初始化
package log
import "time"
type RotationOption func(*RotationSetting)
type RotationSetting struct {
//level LogLevel
path string
format string
size int64
time time.Duration
age time.Duration
}
//LogLevel 0:trace; 10:debug; 20:info; 30:warning; 40:error;
type LogLevel int
//0:trace; 10:debug; 20:info; 30:warning; 40:error;
const (
TraceLevel LogLevel = iota * 10
DebugLevel
InfoLevel
WarningLevel
ErrorLevel
)
Go
1
https://gitee.com/salmon-go/common.git
git@gitee.com:salmon-go/common.git
salmon-go
common
common
v0.0.6

搜索帮助