fastc-core · structured leveled logging
fastc-core-log
fastc-core-log is the structured logging package in fastc-core. It offers five levels and both JSON and human-readable output, and — true to fastC's capability model — writes to a sink you pass in rather than reaching for ambient stderr.
capability none — pure, does no I/O
What it ships (v0.1.0)
- Five levels: trace, debug, info, warn, error
- JSON or human-readable formatting
- Writes to a caller-provided sink, not ambient stderr
- Structured key/value fields
When to use it
Services and CLIs that need auditable, machine-parseable logs.
Example
use log::info;
fn run(caps: Caps) -> i32 {
info("starting up");
return 0;
} fastc-core-log — minimal usage fastc-core-log v0.1.0
Roadmap
Log sampling and per-module level filters land in v0.2.
Provenance
Like every fastc-core package, fastc-core-log ships with
content-hashed, cosign-keyless-signed releases and SLSA L3 provenance. It is
vendored, not pulled from a central registry — there is no account to compromise.
See also
- github.com/fastc-lang/fastc-core-log — source, at
v0.1.0 - docs.fastc-lang.com/language/fastc-core/ — the per-package API deep-dive
- All eleven fastc-core packages →