flog

package
v0.2.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActorId

func ActorId(actor lokas.IActorInfo) zap.Field

func ActorInfo

func ActorInfo(actor lokas.IActorInfo) log.ZapFields

func ActorProcessId

func ActorProcessId(actor lokas.IActorInfo) zap.Field

func ActorReceiveMsgInfo

func ActorReceiveMsgInfo(actor lokas.IActorInfo, serializable protocol.ISerializable, transid uint32, fromActorId util.ID) log.ZapFields

func ActorRouterMsgInfo

func ActorRouterMsgInfo(serializable protocol.ISerializable, transid uint32, fromActorId util.ID, toActorId util.ID, isReq bool) log.ZapFields

func ActorSendMsgInfo

func ActorSendMsgInfo(actor lokas.IActorInfo, serializable protocol.ISerializable, transid uint32, toActorId util.ID) log.ZapFields

func ActorType

func ActorType(actor lokas.IActorInfo) zap.Field

func Address

func Address(addr string) zap.Field

func AvatarGate

func AvatarGate(avatar lokas.IAvatarSession) zap.Field

func AvatarId

func AvatarId(id util.ID) zap.Field

func AvatarInfo

func AvatarInfo(avatar lokas.IActor) log.ZapFields

func AvatarMsgDetail added in v0.2.25

func AvatarMsgDetail(avatar lokas.IAvatar, transId uint32, msg protocol.ISerializable, sess util.ID) log.ZapFields

func AvatarMsgInfo

func AvatarMsgInfo(avatar lokas.IAvatar, transId uint32, msg protocol.ISerializable, sess util.ID) log.ZapFields

func AvatarName

func AvatarName(avatar lokas.IAvatarSession) zap.Field

func AvatarServer

func AvatarServer(avatar lokas.IAvatarSession) zap.Field

func AvatarSessionId

func AvatarSessionId(avatar lokas.IAvatarSession) zap.Field

func AvatarSessionInfo

func AvatarSessionInfo(avatar lokas.IAvatarSession) log.ZapFields

func AvatarSessionMsgInfo

func AvatarSessionMsgInfo(avatar lokas.IAvatarSession, transId uint32, msg protocol.ISerializable, sess util.ID) log.ZapFields

func AvatarUserId added in v0.1.38

func AvatarUserId(avatar lokas.IAvatarSession) zap.Field

func ClientSessionId

func ClientSessionId(id util.ID) zap.Field

func DataBase

func DataBase(d string) zap.Field

func Error

func Error(err error) zap.Field

func ErrorCode

func ErrorCode(err protocol.IError) zap.Field

func ErrorInfo

func ErrorInfo(err protocol.IError) []zap.Field

func ErrorMessage

func ErrorMessage(err protocol.IError) zap.Field

func FromActorId

func FromActorId(id util.ID) zap.Field

func FuncClass

func FuncClass(s interface{}) zap.Field

func FuncInfo

func FuncInfo(class interface{}, f string) log.ZapFields

func FuncName

func FuncName(s string) zap.Field

func GameId

func GameId(name string) zap.Field

func Module

func Module(s lokas.IModule) zap.Field

func MsgBody added in v0.1.31

func MsgBody(serializable protocol.ISerializable) zap.Field

func MsgDetail added in v0.2.25

func MsgDetail(serializable protocol.ISerializable) log.ZapFields

func MsgId

func MsgId(serializable protocol.ISerializable) zap.Field

func MsgInfo

func MsgInfo(serializable protocol.ISerializable) log.ZapFields

func MsgName

func MsgName(serializable protocol.ISerializable) zap.Field

func Offset

func Offset(offset int) zap.Field

func Path

func Path(p string) zap.Field

func ProcessId

func ProcessId(id util.ID) zap.Field

func RegElapsedDay

func RegElapsedDay(day int) zap.Field

func ReqMsg added in v0.1.41

func ReqMsg(req bool) zap.Field

func Result

func Result(s interface{}) zap.Field

func ServerId

func ServerId(id int32) zap.Field

func Size

func Size(size int) zap.Field

func Size64

func Size64(size int64) zap.Field

func Success

func Success(success bool) zap.Field

func ToActorId

func ToActorId(id util.ID) zap.Field

func TransId

func TransId(transid uint32) zap.Field

func Type

func Type(t string) zap.Field

func UserId added in v0.1.38

func UserId(id util.ID) zap.Field

func UserName

func UserName(name string) zap.Field

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL