package
Version:
v1.40.1
Opens a new window with list of versions in this module.
Published: May 10, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 12
Opens a new window with list of known importers.
Documentation
¶
Package filch is a file system queue that pilfers your stderr.
(A FILe CHannel that filches.)
type Filch struct {
OrigStderr *os.File
}
A Filch uses two alternating files as a simplistic ring buffer.
New creates a new filch around two log files, each starting with filePrefix.
Close closes the Filch, releasing all os resources.
TryReadline implements the logtail.Buffer interface.
Write implements the logtail.Buffer interface.
type Options struct {
ReplaceStderr bool
MaxFileSize int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.