remote

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRemote

func WithRemote[T comparable](ctx context.Context, config Config[T]) (context.Context, parallel.Task)

WithRemote adds remote logging to the logger in the context and returns a modified context. The logger in the returned context logs both to stderr and to the remote loki endpoint.

The caller must call the returned cleanup function after using the logger.

Types

type Config added in v0.5.1

type Config[T comparable] struct {
	URL      string
	User     string
	Password string
	Labels   T
}

Config stores configuration of remote logger.

Jump to

Keyboard shortcuts

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