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 ¶
Click to show internal directories.
Click to hide internal directories.