Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateDaemonFilePath ¶
ValidateDaemonFilePath verifies that the daemon log file can be opened.
Types ¶
type DaemonConfig ¶
type DaemonConfig struct {
FilePath string
Mode Mode
Stderr io.Writer
MaxFileSizeBytes int64
MaxRetainedFiles int
Level slog.Leveler
}
DaemonConfig configures the daemon logger sink and mirroring policy.
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime owns one installed daemon logger instance.
func InstallDaemonLogger ¶
func InstallDaemonLogger(cfg DaemonConfig) (*Runtime, error)
InstallDaemonLogger configures and installs the process-wide daemon logger.
Click to show internal directories.
Click to hide internal directories.