tlog

package
v0.0.0-...-135b9b9 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigRemoteAddr

func ConfigRemoteAddr(addr string) error

ConfigRemoteAddr 配置远程入库地址

func Flush

func Flush()

Flush 退出时清空缓冲区

func Format

func Format(content iName)

Format 按照Tlog日志格式打印日志

Types

type GameSvrState

type GameSvrState struct {
	DtEventTime string
	VGameIP     string
	IZoneAreaID uint32
}

GameSvrState 服务器状态日志结构

func (*GameSvrState) Name

func (state *GameSvrState) Name() string

Name 结构体名字

type StateLogger

type StateLogger struct {
	// contains filtered or unexported fields
}

StateLogger 服务器状态日志记录

func NewStateLogger

func NewStateLogger(addr string, zone uint32, interval time.Duration) *StateLogger

NewStateLogger 创建新的服务器状态记录器

func (*StateLogger) Start

func (logger *StateLogger) Start()

Start 启动记录器, 在协程中运行

func (*StateLogger) Stop

func (logger *StateLogger) Stop()

Stop 停止记录器

Jump to

Keyboard shortcuts

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