Documentation
¶
Index ¶
- Variables
- func GetReqID() string
- func SetAsyncFileOutput(fileName string, channelSize uint, logger *Logger)
- func SetLogLevel(level string, logger *Logger)
- func SetOutput(output string, logger *Logger)
- type Logger
- func (logger *Logger) Debug(args ...interface{})
- func (logger *Logger) Debugf(format string, args ...interface{})
- func (logger *Logger) Error(args ...interface{})
- func (logger *Logger) Errorf(format string, args ...interface{})
- func (logger *Logger) Fatal(args ...interface{})
- func (logger *Logger) Fatalf(format string, args ...interface{})
- func (logger *Logger) Info(args ...interface{})
- func (logger *Logger) Infof(format string, args ...interface{})
- func (logger *Logger) Panic(args ...interface{})
- func (logger *Logger) Panicf(format string, args ...interface{})
- func (logger *Logger) ReqID() string
- func (logger *Logger) SetLevel(level log.Level)
- func (logger *Logger) SetOutput(out log.Writer)
- func (logger *Logger) Warn(args ...interface{})
- func (logger *Logger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// RequestIDKey RequestID fields
RequestIDKey = "x-reqid"
)
Functions ¶
func SetAsyncFileOutput ¶
SetAsyncFileOutput set logger async write
func SetLogLevel ¶
SetLogLevel other package set level
Types ¶
Click to show internal directories.
Click to hide internal directories.