Skip to content

vow-log

vow-log wraps log_write with the Log capability for structured audit lines. Install with vpm:

Terminal window
curl -fsSL https://install.vowlang.dev | sh
export PATH="$HOME/.local/bin:$PATH"
vpm add vow-log
vpm install
import vlog from vow_log
fn audit(msg: String) -> int needs Log {
return vlog.info(msg);
}
fn main(caps: Caps) -> int {
return match caps.log {
Some(cap) => with cap { audit("start") },
None => 0 - 1,
};
}
Terminal window
cd vow-libs/vow-log && vow test tests/log.vow -- --grant log:/tmp/app.log