logshim

package
v0.0.0-...-45f8ed2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package logshim provides a shim to send an io.Writer to a logger, one line at a time. Normally only lines terminated with a newline are sent. If a partial line is sent it will be buffered for up to one minute waiting for the rest of the line. After one minute it will be sent as a line.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(f func(...interface{})) *shim

New returns an io.Writer that sends complete lines to the function f. Each complete line is written to f individually. Incomplete lines may wait up to one minute for additional data before flushing in the background.

Types

This section is empty.

Jump to

Keyboard shortcuts

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