logger

package module
v0.0.0-...-97a84ce Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

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)

type LogLevel

type LogLevel string

func AllLogLevels

func AllLogLevels() []LogLevel

Jump to

Keyboard shortcuts

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