Fetch the repository succeeded.
package elog
import (
"fmt"
"sync"
)
const (
LogDebug = iota
LogInfo
LogWarn
LogError
)
var loglevels = []string{
"[DEBUG]",
"[INFO]",
"[WARN]",
"[ERROR]",
}
type LogEvent struct {
level int
content string
file string
line int
}
var GLogEventPool = sync.Pool{
New: func() interface{} {
return &LogEvent{}
},
}
const LogBuffEventSize = 100000
const CommonLogCallDepth = 3
const GlobalLogCallDepth = 4
type FuncType func(...interface{})
type ArgType []interface{}
const LogMajorVersion = 1
const LogSubVersion = 0
const LogRevisionVersion = 0
type LogVersion struct {
}
func (l *LogVersion) GetVersion() string {
return fmt.Sprintf("Log Version: %v.%v.%v", LogMajorVersion, LogSubVersion, LogRevisionVersion)
}
var GLogVersion *LogVersion
func init() {
GLogVersion = &LogVersion{}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。