Documentation ¶
Index ¶
- func FromContext(ctx context.Context) *zap.Logger
- func InitLumberjack(config *config.LogConfig) *lumberjack.Logger
- func NewContext(ctx context.Context, logger *zap.Logger) context.Context
- type LogConfig
- type ZapLogger
- func (l *ZapLogger) Error(args ...interface{})
- func (l *ZapLogger) Errorf(format string, args ...interface{})
- func (l *ZapLogger) Errorln(args ...interface{})
- func (l *ZapLogger) Fatal(args ...interface{})
- func (l *ZapLogger) Fatalf(format string, args ...interface{})
- func (l *ZapLogger) Fatalln(args ...interface{})
- func (l *ZapLogger) Info(args ...interface{})
- func (l *ZapLogger) Infof(format string, args ...interface{})
- func (l *ZapLogger) Infoln(args ...interface{})
- func (l *ZapLogger) V(v int) bool
- func (l *ZapLogger) Warning(args ...interface{})
- func (l *ZapLogger) Warningf(format string, args ...interface{})
- func (l *ZapLogger) Warningln(args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext gets the logger from the context.
func InitLumberjack ¶
Types ¶
type ZapLogger ¶
type ZapLogger struct {
// contains filtered or unexported fields
}
func NewZapLogger ¶
Click to show internal directories.
Click to hide internal directories.