Skip to main content

Module logs

Module logs 

Source
Expand description

The reusable logs CLI verb set (SPEC §8.1).

Every DIG binary mounts this verbatim so <bin> logs path|tail|level|bundle behaves identically everywhere: command() returns the logs clap subcommand to add, and run() dispatches it. The rendering/selection logic is factored into pure helpers so it is unit-testable without a terminal.

Functions§

command
The logs subcommand a consumer adds to its clap app (SPEC §8.1).
run
Dispatch a matched logs subcommand for service (SPEC §8.1).