mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 15:56:43 +08:00
修改证书设置
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user