Documentation
¶
Index ¶
Constants ¶
View Source
const ( GameLogLevel = "GameLogLevel" MatchMakingLogLevel = "MatchMakingLogLevel" ConnectionLogLevel = "ConnectionLogLevel" BaseLogLevel = "BaseLogLevel" WarnLogLevel = "WarnLogLevel" ErrorLogLevel = "ErrorLogLevel" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmojigambleLogger ¶
type EmojigambleLogger struct { LogOrigin string ActiveLogLevels []LogLevel LogToDatabase bool MongoDBConnectionString string }
Configuration for the Emojigamble logger. LogOrigin is used to identify the source of a Log. Optionally active log levels can be stored in the database with LogToDatabase and a MongoDBConnectionString.
func (*EmojigambleLogger) Log ¶
func (logger *EmojigambleLogger) Log(message string, level LogLevel)
func (*EmojigambleLogger) SampleLoggerOutput ¶
func (logger *EmojigambleLogger) SampleLoggerOutput(logToDb bool)
Click to show internal directories.
Click to hide internal directories.