Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Criticalf(fstring string, args ...interface{})
- func (l *Logger) Criticalln(msg string)
- func (l *Logger) Debugf(fstring string, args ...interface{})
- func (l *Logger) Debugln(msg string)
- func (l *Logger) Errorf(fstring string, args ...interface{})
- func (l *Logger) Errorln(msg string)
- func (l *Logger) Infof(fstring string, args ...interface{})
- func (l *Logger) Infoln(msg string)
- func (l *Logger) Plainf(fstring string, args ...interface{})
- func (l *Logger) Plainln(msg string)
- func (l *Logger) Successf(fstring string, args ...interface{})
- func (l *Logger) Successln(msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { // IsDebug is used to determine whether to emit debug logs. IsDebug bool // IsQuiet is used to determine whether to emit non-critical logs. IsQuiet bool // contains filtered or unexported fields }
Logger is a wrapper around log.Logger with the following features:
- Supports a prefix
- Adds colors to the output
- Debug mode (all logs, debug and above)
- Quiet mode (only critical logs)
func GetQuietLogger ¶
GetQuietLogger Returns a logger that only emits critical logs. Useful for anti-cheat stages.
func (*Logger) Criticalln ¶
Criticalln is to be used only in anti-cheat stages
Click to show internal directories.
Click to hide internal directories.