Documentation ¶
Index ¶
- Constants
- func GetLogStateFieldsStr() string
- func Log(lvl int, args ...interface{})
- func LogFunc(name string) func()
- func LogGame(key string, showMaster bool, args ...interface{})
- func SaveToStorage(eventKey string, args string, stateFields string)
- func SetLogFields(keys map[string]string)
- func SetLogLevel(lvl int)
- func SetStorage(storage iStorage)
- func Start(timeout, minRetry, maxRetry time.Duration, logTCP string, hostname string)
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 SaveToStorage ¶
func SetLogFields ¶
func SetStorage ¶
func SetStorage(storage iStorage)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.