logging

package
v6.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package logging provides logging-related helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGlobalContextLoggers

func GetGlobalContextLoggers(ctx context.Context) ldlog.Loggers

GetGlobalContextLoggers returns the Loggers associated with this HTTP request for Relay's global logging. If no such context information was added to the request, it returns disabled loggers.

func GlobalContextLoggersMiddleware

func GlobalContextLoggersMiddleware(loggers ldlog.Loggers) func(http.Handler) http.Handler

GlobalContextLoggersMiddleware attaches global logging context to each HTTP request.

func MakeDefaultLoggers

func MakeDefaultLoggers() ldlog.Loggers

MakeDefaultLoggers returns a Loggers instance configured with Relay's standard log format. Output goes to stdout, except Error level which goes to stderr. Debug level is disabled.

func RequestLoggerMiddleware

func RequestLoggerMiddleware(loggers ldlog.Loggers) func(http.Handler) http.Handler

RequestLoggerMiddleware decorates a Handler with debug-level logging of all requests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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