Documentation ¶
Index ¶
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func SetLevel(lv Level)
- func SetOutput(outputs []string)
- func SetSource(source_ string)
- func TraceError(format string, args ...interface{})
- func Warnf(format string, args ...interface{})
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetSource ¶
func SetSource(source_ 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 ¶
type Level ¶
Level is type of log levels
var ( // DebugLevel level DebugLevel Level = Level(zap.DebugLevel) // InfoLevel level InfoLevel Level = Level(zap.InfoLevel) // WarnLevel level WarnLevel Level = Level(zap.WarnLevel) // ErrorLevel level ErrorLevel Level = Level(zap.ErrorLevel) // PanicLevel level PanicLevel Level = Level(zap.PanicLevel) // FatalLevel level FatalLevel Level = Level(zap.FatalLevel) )
Click to show internal directories.
Click to hide internal directories.