log

package
v0.0.0-...-32a2d26 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoggerLevel = logrus.InfoLevel
	ELKLevel    = logrus.InfoLevel
)
View Source
const (
	LVL_DEBUG = int(logrus.DebugLevel)
	LVL_INFO  = int(logrus.InfoLevel)
	LVL_WARN  = int(logrus.WarnLevel)
	LVL_PANIC = int(logrus.PanicLevel)
	LVL_FATAL = int(logrus.FatalLevel)
	LVL_ERROR = int(logrus.ErrorLevel)
)
View Source
const (
	ShowMasterKey = "ShowMaster"
	GameEventKey  = "GameEvent"
)

Variables

This section is empty.

Functions

func GetLogStateFieldsStr

func GetLogStateFieldsStr() string

func Log

func Log(lvl int, args ...interface{})

func LogFunc

func LogFunc(name string) func()

func LogGame

func LogGame(key string, showMaster bool, args ...interface{})

func SaveToStorage

func SaveToStorage(eventKey string, args string, stateFields string)

func SetLogFields

func SetLogFields(keys map[string]string)

func SetLogLevel

func SetLogLevel(lvl int)

TODO: неважно: check somethere and set dynamically

func SetStorage

func SetStorage(storage iStorage)

func Start

func Start(timeout, minRetry, maxRetry time.Duration, logTCP string, hostname string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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