logger

package
v0.0.0-...-1d2f786 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequestID

func GetRequestID(ctx context.Context) string

func Middleware

func Middleware(log *Logger) func(next http.Handler) http.Handler

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewDebugLogger

func NewDebugLogger() *Logger

func NewLogger

func NewLogger() *Logger

func NewTestLogger

func NewTestLogger() *Logger

func (*Logger) Debug

func (l *Logger) Debug(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Error

func (l *Logger) Error(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Fatal

func (l *Logger) Fatal(msg string, fields ...zap.Field)

func (*Logger) Info

func (l *Logger) Info(ctx context.Context, msg string, fields ...zap.Field)

func (*Logger) Sync

func (l *Logger) Sync()

func (*Logger) With

func (l *Logger) With(fields ...zap.Field)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL