package
Version:
v0.0.0-...-ba2213e
Opens a new window with list of versions in this module.
Published: Jun 21, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Debug(format string, args ...interface{})
Debug 打印debug级别日志
func Error(format string, args ...interface{})
Error 打印error级别日志
func Fatal(format string, args ...interface{})
Fatal 打印critial级别日志
func Info(format string, args ...interface{})
Info 打印info级别日志
func Trace(format string, args ...interface{})
Trace 打印trace级别日志
func Warn(format string, args ...interface{})
Warn 打印warn级别日志
type Config struct {
Engine LogEngine `json:"engine"`
Path string `json:"path"`
CacheSize int64 `json:"cache_size"`
EnableFuncCallDepth bool `json:"enable_func_call_depth"`
FuncCallDepth int `json:"func_call_depth"`
}
Config 日志配置
type LogEngine struct {
Adapter string `json:"adapter"`
Config map[string]interface{} `json:"config"`
}
LogEngine 日志模式配置
Source Files
¶
Click to show internal directories.
Click to hide internal directories.