Documentation ¶
Index ¶
- func Debug(args ...interface{})
- 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 Info(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 SetRotateFile(logfile string, logstd bool)
- func SetSource(source_ string)
- func TraceError(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetRotateFile ¶
SetRotateFile sets the output writer
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.