internallog

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: BSD-3-Clause Imports: 8 Imported by: 1

Documentation

Overview

Package internallog in intended for internal use by generated clients only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPRequest

func HTTPRequest(req *http.Request, body []byte) slog.LogValuer

HTTPRequest returns a lazily evaluated slog.LogValuer for a http.Request and the associated body.

func HTTPResponse

func HTTPResponse(resp *http.Response, body []byte) slog.LogValuer

HTTPResponse returns a lazily evaluated slog.LogValuer for a http.Response and the associated body.

func New

func New(l *slog.Logger) *slog.Logger

New returns a new slog.Logger default logger, or the provided logger if non-nil. The returned logger will be a no-op logger unless the environment variable GOOGLE_SDK_DEBUG_LOGGING is set.

Types

This section is empty.

Directories

Path Synopsis
Package grpclog in intended for internal use by generated clients only.
Package grpclog in intended for internal use by generated clients only.
Package internal provides some common logic and types to other logging sub-packages.
Package internal provides some common logic and types to other logging sub-packages.
logtest
Package logtest is a helper for validating logging tests.
Package logtest is a helper for validating logging tests.

Jump to

Keyboard shortcuts

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