日志升级相关枚举值定义

This commit is contained in:
2024-11-25 16:33:16 +08:00
parent 98eb52ae30
commit eab7bab9d7
7 changed files with 114 additions and 66 deletions

View File

@ -8,6 +8,7 @@
package logger
import (
"git.zhangdeman.cn/zhangdeman/consts"
"io"
"os"
@ -25,7 +26,7 @@ import (
// Author : go_developer@163.com<白茶清欢>
//
// Date : 5:05 下午 2021/1/2
func NewLogger(inputLoggerLevel string, splitConfig *RotateLogConfig, optionFunc ...SetLoggerOptionFunc) (*zap.Logger, error) {
func NewLogger(inputLoggerLevel consts.LogLevel, splitConfig *RotateLogConfig, optionFunc ...SetLoggerOptionFunc) (*zap.Logger, error) {
if nil == splitConfig {
return nil, errors.New("未配置日志切割规则")
}