logger

package
v0.0.0-...-b600c66 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright 2022 Red Hat Inc. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

Log is a global variable that carries the Sugared logger

Functions

func ExportIDField

func ExportIDField(exportID string) zap.Field

func Get

func Get() *zap.SugaredLogger

func OrgIDField

func OrgIDField(orgID string) zap.Field

func RequestIDField

func RequestIDField(requestID string) zap.Field

func ResponseLogger

func ResponseLogger(next http.Handler) http.Handler

ResponseLogger is a middleware that sets the ResponseLogger to the global default.

func SetResponseLogger

func SetResponseLogger(l *zap.SugaredLogger) func(next http.Handler) http.Handler

SetResponseLogger is a middleware helper that accepts a configured zap.SugaredLogger and logs response information for each API response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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