package internallog
import "github.com/googleapis/gax-go/v2/internallog"
Package internallog in intended for internal use by generated clients only.
Index ¶
- func HTTPRequest(req *http.Request, body []byte) slog.LogValuer
- func HTTPResponse(resp *http.Response, body []byte) slog.LogValuer
- func New(l *slog.Logger) *slog.Logger
Functions ¶
func HTTPRequest ¶
HTTPRequest returns a lazily evaluated slog.LogValuer for a http.Request and the associated body.
func HTTPResponse ¶
HTTPResponse returns a lazily evaluated slog.LogValuer for a http.Response and the associated body.
func New ¶
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_GO_LOGGING_LEVEL is set.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internallog/grpclog | Package grpclog in intended for internal use by generated clients only. |
internallog/internal | Package internal provides some common logic and types to other logging sub-packages. |
- Version
- v2.14.1 (latest)
- Published
- Dec 20, 2024
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 8 hours ago –
Tools for package owners.