Documentation ¶
Index ¶
- Constants
- func Alert(f interface{}, v ...interface{})
- func Critical(f interface{}, v ...interface{})
- func Debug(f interface{}, v ...interface{})
- func Emergency(f interface{}, v ...interface{})
- func Error(f interface{}, v ...interface{})
- func GetUniqueID() int64
- func Info(f interface{}, v ...interface{})
- func Notice(f interface{}, v ...interface{})
- func SetUniqueID(id int64)
- func Warn(f interface{}, v ...interface{})
- type LogInfoTemplate
Constants ¶
View Source
const (
// LogPath 日志地址
LogPath = "./logs/rpc_ts.log"
)
log 的一些设置
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogInfoTemplate ¶
type LogInfoTemplate struct { UniqueID int64 `json:"uniqueID"` Data interface{} }
LogInfoTemplate log 信息模板
Click to show internal directories.
Click to hide internal directories.