slog

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

slog performs structured logging when running on App Engine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(ctx context.Context, v ...any)

Error logs an error in the manner of log.Print.

func Errorf

func Errorf(ctx context.Context, format string, v ...any)

Errorf logs an error in the manner of log.Printf.

func Info

func Info(ctx context.Context, v ...any)

Info logs an informational message in the manner of log.Print.

func Infof

func Infof(ctx context.Context, format string, v ...any)

Errorf logs an informational message in the manner of log.Printf.

func RequestContext

func RequestContext(req *http.Request) context.Context

RequestContext attempts to extract a GCP trace ID from req and attach it to a new context derived from req.Context().

Types

This section is empty.

Jump to

Keyboard shortcuts

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