log

package
v0.0.0-...-8b2cf58 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerActionHourRefresh         = "ServerHourRefresh"
	ServerActionDailyRefresh        = "ServerDailyRefresh"
	ServerActionWeeklyRefresh       = "ServerActionWeeklyRefresh"
	ServerActionPlayerConnectWithIp = "ServerActionPlayerConnectWithIp"
)

服务器行为标记

View Source
const (
	PlayerLogId        = "PlayerId"
	PlayerDbLogId      = "PlayerDbLogId"
	ConnLogId          = "ConnId"
	ApiLog             = "api"
	ModuleLog          = "module"
	RoomLogId          = "RoomId"
	MsgTypeIdLog       = "MsgTypeId"
	AddRoleScore       = "AddRoleScore"
	ServerLogId        = "ServerId"
	TeamLogId          = "TeamId"
	ContainerIdLog     = "ContainerId"
	AwsTaskLog         = "AwsTaskLog"
	AwsEniLog          = "AwsEniLog"
	DockerContainerLog = "DockerContainerLog"
	ServerActionLog    = "ServerActionLog"
	WeaponNftLog       = "WeaponNFTLog"
	WeaponDbId         = "WeaponDbIdLog"
)

玩家相关的行为标记

Variables

This section is empty.

Functions

func InitLog

func InitLog()

Types

type Wrapper

type Wrapper struct {
	*logrus.Entry
}
var Logger *Wrapper

func ServerLog

func ServerLog() *Wrapper

func (*Wrapper) ApiLog

func (l *Wrapper) ApiLog() *Wrapper

func (*Wrapper) WithPlayerDbLog

func (l *Wrapper) WithPlayerDbLog(playerId uint) *Wrapper

func (*Wrapper) WithPlayerLog

func (l *Wrapper) WithPlayerLog(playerId string) *Wrapper

Jump to

Keyboard shortcuts

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