Documentation ¶
Index ¶
- Variables
- func Fatalf(format string, args ...interface{})
- func GetOutput() io.Writer
- func Panic(v interface{})
- func Panicf(format string, args ...interface{})
- func SetLevel(lv Level)
- func SetOutput(out io.Writer)
- func SetSource(comp string)
- func TraceError(format string, args ...interface{})
- type Level
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DebugLevel level DebugLevel Level = Level(sublog.DebugLevel) // InfoLevel level InfoLevel Level = Level(sublog.InfoLevel) // WarnLevel level WarnLevel Level = Level(sublog.WarnLevel) // ErrorLevel level ErrorLevel Level = Level(sublog.ErrorLevel) // PanicLevel level PanicLevel Level = Level(sublog.PanicLevel) // FatalLevel level FatalLevel Level = Level(sublog.FatalLevel) // Debugf logs formatted debug message Debugf logFormatFunc // Infof logs formatted info message Infof logFormatFunc // Warnf logs formatted warn message Warnf logFormatFunc // Errorf logs formatted error message Errorf logFormatFunc )
Functions ¶
func SetSource ¶
func SetSource(comp string)
SetSource sets the component name (dispatcher/gate/game) of gwlog module
func TraceError ¶
func TraceError(format string, args ...interface{})
TraceError prints the stack and error
Types ¶
Click to show internal directories.
Click to hide internal directories.