Documentation ¶
Index ¶
- func Ctx(ctx context.Context) *zerolog.Logger
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalln(v ...interface{})
- func Handler() func(http.Handler) http.Handler
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Logger() *zerolog.Logger
- func Output(w io.Writer) *zerolog.Logger
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func ProxyAwareRemote(r *http.Request) string
- func Req(r *http.Request) *zerolog.Logger
- func RequestID(r *http.Request) string
- func RequestIDFromContext(ctx context.Context) string
- func Stack(ctx context.Context)
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- func WithContext(ctx context.Context) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf implements logrus Debugf interface
func Errorf ¶
func Errorf(format string, v ...interface{})
Errorf implements logrus Errorf interface
func Handler ¶
Handler is a middleware that handles all of the logging aspects of any incoming http request
func ProxyAwareRemote ¶
ProxyAwareRemote return the most likely remote address
func RequestIDFromContext ¶
RequestIDFromContext returns a unique request id or an empty string if there is none
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.