Documentation ¶
Overview ¶
Package log @Description: log包,日志相关业务 @Link https://github.com/natefinch/lumberjack @Link https://github.com/uber-go/zap
Index ¶
- Constants
- func CheckLogTag(tag string) bool
- func DB(script string, count int32)
- func Debug(msg string, params ...interface{})
- func DebugTag(tag string, msg string, params ...interface{})
- func Error(msg string, params ...interface{})
- func ErrorTag(tag string, msg string, params ...interface{})
- func Game(userId, tag, msg string, params ...interface{})
- func Info(msg string, params ...interface{})
- func InfoTag(tag string, msg string, params ...interface{})
- func SLogger() *zap.SugaredLogger
- func Service(module, name, version, userId, args, reply string, consume int64, code int32)
- func Warn(msg string, params ...interface{})
- func WarnTag(tag string, msg string, params ...interface{})
- type GameSpan
- type Span
- type SystemSpan
- type TaggedCore
- func (t *TaggedCore) Check(entry zapcore.Entry, checkedEntry *zapcore.CheckedEntry) *zapcore.CheckedEntry
- func (t *TaggedCore) Enabled(lvl zapcore.Level) bool
- func (t *TaggedCore) Sync() error
- func (t *TaggedCore) With(fields []zapcore.Field) zapcore.Core
- func (t *TaggedCore) Write(entry zapcore.Entry, fields []zapcore.Field) error
- type Trace
- type UserSpan
Constants ¶
View Source
const ( GAMETAG = "game" DBTAG = "db" SERVICETAG = "service" )
Variables ¶
This section is empty.
Functions ¶
func CheckLogTag ¶ added in v1.0.8
func SLogger ¶ added in v1.0.9
func SLogger() *zap.SugaredLogger
Types ¶
type TaggedCore ¶ added in v1.0.9
func (*TaggedCore) Check ¶ added in v1.0.9
func (t *TaggedCore) Check(entry zapcore.Entry, checkedEntry *zapcore.CheckedEntry) *zapcore.CheckedEntry
func (*TaggedCore) Sync ¶ added in v1.0.9
func (t *TaggedCore) Sync() error
Click to show internal directories.
Click to hide internal directories.