Documentation
¶
Index ¶
- Constants
- func C(ctx context.Context) *zapLogger
- func Debugf(format string, v ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Errorf(format string, v ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func Infof(format string, v ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func Init(opts *Options)
- func NewLogger(opts *Options) *zapLogger
- func Panicf(format string, v ...interface{})
- func Panicw(msg string, keysAndValues ...interface{})
- func Sync()
- func Warnf(format string, v ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
- type Logger
- type Options
Constants ¶
View Source
const (
KeyRequestID string = "requestID"
)
Variables ¶
This section is empty.
Functions ¶
func Debugw ¶
func Debugw(msg string, keysAndValues ...interface{})
Debugw method output debug level log.
func Errorw ¶
func Errorw(msg string, keysAndValues ...interface{})
Errorw method output error level log.
func Fatalw ¶
func Fatalw(msg string, keysAndValues ...interface{})
Fatalw method output Fatalw level log.
func Infow ¶
func Infow(msg string, keysAndValues ...interface{})
Infow method output info level log.
func Panicf ¶
func Panicf(format string, v ...interface{})
Panicf method output panic level log and shutdown application.
Types ¶
type Logger ¶
type Logger interface {
Debugf(format string, v ...interface{})
Debugw(msg string, keysAndValues ...interface{})
Infof(format string, v ...interface{})
Infow(msg string, keysAndValues ...interface{})
Warnf(format string, v ...interface{})
Warnw(msg string, keysAndValues ...interface{})
Errorf(format string, v ...interface{})
Errorw(msg string, keysAndValues ...interface{})
Panicf(format string, v ...interface{})
Panicw(msg string, keysAndValues ...interface{})
Fatalf(format string, v ...interface{})
Fatalw(msg string, keysAndValues ...interface{})
Sync()
}
Click to show internal directories.
Click to hide internal directories.