nblog

package
v0.0.0-...-94e6d93 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(ctx context.Context) *zerolog.Logger

Log returns a zerolog Logger with additional context information (i.e. request ID)

func MakeLogMiddleware

func MakeLogMiddleware(next http.Handler) http.Handler

Types

type PgxLogger

type PgxLogger struct{}

PgxLogger implements pgx's logger interface

func (PgxLogger) Log

func (PgxLogger) Log(ctx context.Context, level pgx.LogLevel, msg string, data map[string]interface{})

Log is pgx-compatible wrapper around log()

Jump to

Keyboard shortcuts

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