logwrap

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package logwrap provides an io.Writer that writes its output to a logger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SlogWriter

func SlogWriter(logger *slog.Logger) io.Writer

SlogWriter returns an io.Writer that forwards its output to a structured logger.

Each line of text (terminated by a newline) is sent to the logger as an INFO message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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