also exported from index.ts
AnalysisLog import type {AnalysisLog} from 'svelte-docinfo/log.js'; Minimal logger interface for analysis functions.
Intentionally narrow so that both @fuzdev/fuz_util's Logger class and
Vite's built-in logger satisfy it without adapters or casts.
examples
// Stderr logger for CLI usage
const log: AnalysisLog = {
info: (msg) => console.error(msg),
warn: (msg) => console.error(`warning: ${msg}`),
error: (msg) => console.error(`error: ${msg}`),
};info
type (msg: string) => void
warn
type (msg: string) => void
error
type (msg: string) => void