Documentation
¶
Overview ¶
Package logutil holds lys-ui's single injectable logger. Library code is silent by default: failures come back as returned errors, and the events that are not failures — event-loop diagnostics, protocol warnings, protocol chatter — emit through the logger installed here, which starts as a discarding sink. An embedding application owns its logging and installs its *slog.Logger once at startup (wlsession.SetLogger, mirrored by app.SetLogger); passing nil restores the discarding default.
Levels ¶
Debug — protocol chatter: optional globals the compositor does not advertise, capability changes, sub-object binds. Opt-in by level.
Info — unused. The library logs nothing per-frame or per-keypress, and nothing at Info at all.
Warn — degraded but running: an advertised optional protocol failed to bind and its feature silently disappears, a theme's contrast sits below WCAG AA. The session continues; the app decides whether it cares.
Error — terminal conditions only: the compositor raised a fatal protocol error against this client.
The lysdebug build-tag trace facility (internal/debug) is a different concern — compile-out traces, not runtime logging — and stays independent of this package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.