Skip to content

Warner

Warning collector for BrikLab modules with Protection Levels.

Use summary In CI

summary mode keeps logs concise while still tracking warning totals.

Pages

Quick Start

ts
import { Warner } from "@briklab/lib/warner";

const warner = new Warner({ level: "summary", protectionLevel: "boundary", packageName: "MyPackage" });
warner.warn({
  message: "This is a warning",
  source: "config-loader",
  hint: "Set `strict: true` for better diagnostics."
});
warner.finalize();

Behavior

  • silent: Collect warnings without printing.
  • summary: Print total warnings on finalize/flush.
  • full: Print warning details as configured.

Diagram

100%Ctrl + wheel to zoom