pino
Implementation of the Pino logger API. There is no default interpreter because logging targets are application-defined.
The docs playground routes logs to an in-memory sink so you can inspect behavior directly.
import { pino, wrapPino, createPinoInterpreter } from "@mvfm/plugin-pino";
import pinoLib from "pino";
// 1. Create a pino logger instance
const logger = pinoLib({ level: "info" });
const client = wrapPino(logger);
// 2. Build the interpreter
const pinoInterp = createPinoInterpreter(client);
// 3. Merge and run
const app = mvfm(prelude, pino);
const baseInterp = defaults(app, { pino: pinoInterp });
await fold(baseInterp, prog);