zap

package module
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultZapLogger

func DefaultZapLogger(zl *zap.Logger, level zapcore.Level, message string) httplog.FormatterFunction

Combines default logger and Zap logger

func DefaultZapLoggerWithHeaders

func DefaultZapLoggerWithHeaders(zl *zap.Logger, level zapcore.Level, message string) httplog.FormatterFunction

DefaultZapLoggerWithHeaders combine default formatter, headers output and logger

func DefaultZapLoggerWithHeadersAndBody

func DefaultZapLoggerWithHeadersAndBody(zl *zap.Logger, level zapcore.Level, message string) httplog.FormatterFunction

DefaultZapLoggerWithHeaders combine default formatter, headers output, body output and logger

func ZapLogger

func ZapLogger(zl *zap.Logger, level zapcore.Level, message string) httplog.FormatterFunction

ZapLogger log everything to zap logger with specific log level, if message is empty, URL is used instead

Types

This section is empty.

Jump to

Keyboard shortcuts

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