NAME
log - private built-in log helper for Developer Dashboard
SYNOPSIS
d2 log
d2 log web
d2 log collector
d2 log collector alpha.collector
DESCRIPTION
This private helper is staged under ~/.developer-dashboard/cli/dd/ so the public d2 entrypoint can stay a thin switchboard.
PURPOSE
This staged helper exposes the top-level log viewer for Developer Dashboard so operators can inspect web logs, collector logs, or both from one command family without needing to remember the nested collector and serve subcommands.
WHY IT EXISTS
It exists because log viewing is built-in runtime behavior, but the public switchboard should dispatch to a staged helper while shared log parsing and rendering live in reusable Perl modules.
WHEN TO USE
Use this file when changing the public d2 log or d2 logs CLI contract, the staged helper dispatch path, or the examples operators use for web versus collector log inspection.
HOW TO USE
Users run d2 log, d2 logs, d2 log web, or d2 log collector [name]. The helper re-enters the private runtime, which loads the shared runtime-control module and prints the requested log stream.
WHAT USES IT
It is used by operators inspecting runtime logs, by smoke tests that pin the public log contract, and by the thin loader tests that ensure log stays a staged built-in helper instead of bloating the public entrypoint.
EXAMPLES
d2 log
d2 logs
d2 log web -n 50
d2 log collector housekeeper