logutil

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSuppressWriter

func NewSuppressWriter(w io.Writer, suppress string) io.Writer

NewSuppressWriter returns an io.Writer that discards writes containing the given substring.

Types

type SuppressWriter

type SuppressWriter struct {
	W        io.Writer
	Suppress string
}

SuppressWriter wraps an io.Writer and drops any Write that contains the suppression string. It is used to silence known-harmless log noise (e.g. Go's net/http "Unsolicited response received on idle HTTP channel" during Unity domain reloads).

func (*SuppressWriter) Write

func (s *SuppressWriter) Write(p []byte) (int, error)

Write implements io.Writer.

Jump to

Keyboard shortcuts

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