Documentation ¶
Index ¶
- func GetRequestID(ctx context.Context) string
- func Middleware(log *Logger) func(next http.Handler) http.Handler
- type Logger
- func (l *Logger) Debug(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) Error(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) Fatal(msg string, fields ...zap.Field)
- func (l *Logger) Info(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) Sync()
- func (l *Logger) With(fields ...zap.Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestID ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewDebugLogger ¶
func NewDebugLogger() *Logger
func NewTestLogger ¶
func NewTestLogger() *Logger
Click to show internal directories.
Click to hide internal directories.