package internal

import "github.com/googleapis/gax-go/v2/internallog/internal"

Package internal provides some common logic and types to other logging sub-packages.

Index

Constants

const (
	// LoggingLevelEnvVar is the environment variable used to enable logging
	// at a particular level.
	LoggingLevelEnvVar = "GOOGLE_SDK_GO_LOGGING_LEVEL"
)

Functions

func NewLoggerWithWriter

func NewLoggerWithWriter(w io.Writer) *slog.Logger

NewLoggerWithWriter is exposed for testing.

Source Files

internal.go

Directories

PathSynopsis
internallog/internal/bookpb
internallog/internal/logtestPackage logtest is a helper for validating logging tests.
Version
v2.14.1 (latest)
Published
Dec 20, 2024
Platform
linux/amd64
Imports
6 packages
Last checked
8 hours ago

Tools for package owners.