gcpslog

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerOptions

type HandlerOptions struct {
	Level     slog.Leveler
	ProjectID string
	TraceInfo func(ctx context.Context) (traceID string, spanID string)
}

HandlerOptions are options for a Cloud Logging compatible handler.

func (HandlerOptions) NewHandler

func (ho HandlerOptions) NewHandler(w io.Writer) slog.Handler

NewHandler creates a Cloud Logging compatible handler with the given options that writes to w.

Jump to

Keyboard shortcuts

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