Documentation
¶
Index ¶
Constants ¶
View Source
const ( MinTeeSize = 500 // Minimum output size to tee (bytes) DefaultMaxFiles = 20 // Default max files to keep DefaultMaxSize = 1 << 20 // Default max file size (1MB) )
Configuration defaults
Variables ¶
This section is empty.
Functions ¶
func FormatHint ¶ added in v1.2.0
FormatHint formats a file path as a hint string with ~ shorthand.
Types ¶
type Config ¶
type Config struct {
Enabled bool // Whether tee is enabled
Mode Mode // When to write tee files
MaxFiles int // Maximum number of files to keep
MaxFileSize int // Maximum file size in bytes
Directory string // Directory for tee files (empty = default)
}
Config configures the tee feature.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the default tee configuration.
type Tee ¶ added in v1.2.0
type Tee struct {
// contains filtered or unexported fields
}
Tee handles writing raw output to recovery files.
func (*Tee) GetDirectory ¶ added in v1.2.0
GetDirectory returns the tee directory path.
func (*Tee) ShouldTee ¶ added in v1.2.0
ShouldTee determines if output should be tee'd based on config and conditions.
Click to show internal directories.
Click to hide internal directories.