logging
Installation
SKILL.md
Logging
When to Use
Use this skill when the user wants to capture, route, filter, or silence ovstage's
log output: install a log callback, set a severity threshold, filter by channel, or
flush pending messages before a checkpoint. For operation/return-code error handling
(not logging), use the error-handling skill instead.
Inputs
Resolve inputs in this order: existing repository files and referenced snippets, explicit user request, then broader agent context.
- The desired default severity threshold (
LogSeverity/ovstage_log_severity_t). - Any per-channel overrides (a comma-separated
<channel>=<level>filter). - Target API surface: C, Python, or both.
- Whether the caller needs a barrier (
flush_log) before reading captured output. - The shipped headers (
ovstage.h,ovstage_types.h) and the referenced test snippet are the authoritative contract.