guilog

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package guilog manages gui-client.log, which follows the daemon's log level: in debug/trace the GUI attaches a rotated file alongside the console so its (and the React frontend's forwarded) output is captured for the debug bundle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugLog

type DebugLog struct {
	// contains filtered or unexported fields
}

DebugLog attaches/detaches gui-client.log based on the daemon's log level, fed via Apply. The file is left on disk for the debug bundle to collect. Disabled (and never touches logging) when the user set --log-file explicitly.

func NewDebugLog

func NewDebugLog(uiPath string, enabled bool) *DebugLog

NewDebugLog builds the GUI debug log. enabled is false when the user passed --log-file (manual override).

func (*DebugLog) Apply

func (d *DebugLog) Apply(level string)

Apply reacts to a daemon log level (the logrus name, e.g. "debug"). Idempotent via the fileOn guard, so the startup replay plus a racing change-event are harmless.

func (*DebugLog) Path

func (d *DebugLog) Path() string

Path returns the GUI log path to register with the daemon, or "" when disabled so the daemon won't collect a file the GUI never writes.

Jump to

Keyboard shortcuts

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