unitlog

package
v1.33.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package unitlog centralises how lerd locates a unit's logs across platforms: whether a unit runs as a detached podman container (logs via `podman logs`) versus a launchd-supervised service on macOS (logs in ~/Library/Logs/lerd), and the framework-worker classification both decisions lean on. Shared by the UI log streamer and the logsource reader so the rules live in one place.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsContainerUnit

func IsContainerUnit(_ string) bool

IsContainerUnit returns true on Linux — all lerd units run as Podman containers, so their logs come from `podman logs` / the journal.

func IsFrameworkWorkerUnit

func IsFrameworkWorkerUnit(unit string) bool

IsFrameworkWorkerUnit reports whether unit looks like a built-in framework worker (queue, schedule, horizon, reverb).

func LogHint added in v1.32.0

func LogHint(unit string) string

LogHint is the command a user runs to read a unit's recent output. It lives here rather than beside each caller so the darwin build cannot end up naming journalctl, which no Mac has.

Types

This section is empty.

Jump to

Keyboard shortcuts

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