修改证书设置

This commit is contained in:
bjdgyc
2023-04-21 11:39:51 +08:00
parent cc5aff08ad
commit 6ee80d32ea
4 changed files with 33 additions and 10 deletions

View File

@@ -10,7 +10,8 @@ import (
)
const (
_Debug = iota
_Trace = iota
_Debug
_Info
_Warn
_Error
@@ -89,6 +90,7 @@ func GetBaseLog() *log.Logger {
func logLevel2Int(l string) int {
levels = map[int]string{
_Trace: "Trace",
_Debug: "Debug",
_Info: "Info",
_Warn: "Warn",
@@ -109,6 +111,14 @@ func output(l int, s ...interface{}) {
_ = baseLog.Output(3, lvl+fmt.Sprintln(s...))
}
func Trace(v ...interface{}) {
l := _Trace
if baseLevel > l {
return
}
output(l, v...)
}
func Debug(v ...interface{}) {
l := _Debug
if baseLevel > l {