[{"data":1,"prerenderedAt":1199},["ShallowReactive",2],{"navigation_docs":3,"-cli-overview":520,"-cli-overview-surround":1194},[4,30,80,123,303,435,490],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Start","\u002Fstart","1.start",[9,14,19,24],{"title":10,"path":11,"stem":12,"icon":13},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction","i-lucide-info",{"title":15,"path":16,"stem":17,"icon":18},"Why start with evlog","\u002Fstart\u002Fwhy-evlog","1.start\u002F2.why-evlog","i-lucide-rocket",{"title":20,"path":21,"stem":22,"icon":23},"Installation","\u002Fstart\u002Finstallation","1.start\u002F3.installation","i-lucide-download",{"title":25,"path":26,"stem":27,"icon":28},"Quick Start","\u002Fstart\u002Fquick-start","1.start\u002F4.quick-start","i-lucide-zap",false,{"title":31,"path":32,"stem":33,"children":34,"page":29},"Learn","\u002Flearn","2.learn",[35,40,45,50,55,60,65,70,75],{"title":36,"path":37,"stem":38,"icon":39},"Overview","\u002Flearn\u002Foverview","2.learn\u002F0.overview","i-lucide-list",{"title":41,"path":42,"stem":43,"icon":44},"Simple Logging","\u002Flearn\u002Fsimple-logging","2.learn\u002F1.simple-logging","i-lucide-terminal",{"title":46,"path":47,"stem":48,"icon":49},"Wide Events","\u002Flearn\u002Fwide-events","2.learn\u002F2.wide-events","i-lucide-layers",{"title":51,"path":52,"stem":53,"icon":54},"Structured Errors","\u002Flearn\u002Fstructured-errors","2.learn\u002F3.structured-errors","i-lucide-shield-alert",{"title":56,"path":57,"stem":58,"icon":59},"Lifecycle","\u002Flearn\u002Flifecycle","2.learn\u002F4.lifecycle","i-lucide-arrow-right-left",{"title":61,"path":62,"stem":63,"icon":64},"Sampling","\u002Flearn\u002Fsampling","2.learn\u002F5.sampling","i-lucide-filter",{"title":66,"path":67,"stem":68,"icon":69},"Auto-Redaction","\u002Flearn\u002Fredaction","2.learn\u002F6.redaction","i-lucide-eye-off",{"title":71,"path":72,"stem":73,"icon":74},"Typed Fields","\u002Flearn\u002Ftyped-fields","2.learn\u002F7.typed-fields","i-simple-icons-typescript",{"title":76,"path":77,"stem":78,"icon":79},"Catalogs","\u002Flearn\u002Fcatalogs","2.learn\u002F8.catalogs","i-lucide-book-open",{"title":81,"path":82,"stem":83,"children":84,"page":29},"CLI","\u002Fcli","3.cli",[85,88,93,98,103,108,113,118],{"title":36,"path":86,"stem":87,"icon":44},"\u002Fcli\u002Foverview","3.cli\u002F0.overview",{"title":89,"path":90,"stem":91,"icon":92},"init","\u002Fcli\u002Finit","3.cli\u002F1.init","i-lucide-wand-sparkles",{"title":94,"path":95,"stem":96,"icon":97},"map","\u002Fcli\u002Fmap","3.cli\u002F2.map","i-lucide-radar",{"title":99,"path":100,"stem":101,"icon":102},"Rules","\u002Fcli\u002Frules","3.cli\u002F3.rules","i-lucide-list-checks",{"title":104,"path":105,"stem":106,"icon":107},"Scoring","\u002Fcli\u002Fscoring","3.cli\u002F4.scoring","i-lucide-gauge",{"title":109,"path":110,"stem":111,"icon":112},"CI","\u002Fcli\u002Fci","3.cli\u002F5.ci","i-lucide-git-pull-request",{"title":114,"path":115,"stem":116,"icon":117},"doctor","\u002Fcli\u002Fdoctor","3.cli\u002F6.doctor","i-lucide-stethoscope",{"title":119,"path":120,"stem":121,"icon":122},"telemetry","\u002Fcli\u002Ftelemetry","3.cli\u002F7.telemetry","i-lucide-bar-chart-3",{"title":124,"path":125,"stem":126,"children":127,"page":29},"Integrate","\u002Fintegrate","4.integrate",[128,132,215],{"title":36,"path":129,"stem":130,"icon":131},"\u002Fintegrate\u002Foverview","4.integrate\u002F0.overview","i-lucide-plug",{"title":133,"path":134,"stem":135,"children":136,"page":29},"Adapters","\u002Fintegrate\u002Fadapters","4.integrate\u002Fadapters",[137,140,180,195],{"title":36,"path":138,"stem":139,"icon":39},"\u002Fintegrate\u002Fadapters\u002Foverview","4.integrate\u002Fadapters\u002F01.overview",{"title":141,"path":142,"stem":143,"children":144,"page":29},"Cloud","\u002Fintegrate\u002Fadapters\u002Fcloud","4.integrate\u002Fadapters\u002Fcloud",[145,150,155,160,165,170,175],{"title":146,"path":147,"stem":148,"icon":149},"Axiom","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Faxiom","4.integrate\u002Fadapters\u002Fcloud\u002F01.axiom","i-custom-axiom",{"title":151,"path":152,"stem":153,"icon":154},"OTLP","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fotlp","4.integrate\u002Fadapters\u002Fcloud\u002F02.otlp","i-simple-icons-opentelemetry",{"title":156,"path":157,"stem":158,"icon":159},"PostHog","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fposthog","4.integrate\u002Fadapters\u002Fcloud\u002F03.posthog","i-simple-icons-posthog",{"title":161,"path":162,"stem":163,"icon":164},"Sentry","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fsentry","4.integrate\u002Fadapters\u002Fcloud\u002F04.sentry","i-simple-icons-sentry",{"title":166,"path":167,"stem":168,"icon":169},"Better Stack","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fbetter-stack","4.integrate\u002Fadapters\u002Fcloud\u002F05.better-stack","i-simple-icons-betterstack",{"title":171,"path":172,"stem":173,"icon":174},"Datadog","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fdatadog","4.integrate\u002Fadapters\u002Fcloud\u002F06.datadog","i-simple-icons-datadog",{"title":176,"path":177,"stem":178,"icon":179},"HyperDX","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fhyperdx","4.integrate\u002Fadapters\u002Fcloud\u002F07.hyperdx","i-custom-hyperdx",{"title":181,"path":182,"stem":183,"children":184,"page":29},"Cloud or Self-Hosted","\u002Fintegrate\u002Fadapters\u002Fhybrid","4.integrate\u002Fadapters\u002Fhybrid",[185,190],{"title":186,"path":187,"stem":188,"icon":189},"Grafana Loki","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Floki","4.integrate\u002Fadapters\u002Fhybrid\u002F01.loki","i-simple-icons-grafana",{"title":191,"path":192,"stem":193,"icon":194},"ClickHouse","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fclickhouse","4.integrate\u002Fadapters\u002Fhybrid\u002F02.clickhouse","i-simple-icons-clickhouse",{"title":196,"path":197,"stem":198,"children":199,"page":29},"Self-Hosted","\u002Fintegrate\u002Fadapters\u002Fself-hosted","4.integrate\u002Fadapters\u002Fself-hosted",[200,205,210],{"title":201,"path":202,"stem":203,"icon":204},"File System","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Ffs","4.integrate\u002Fadapters\u002Fself-hosted\u002F01.fs","i-lucide-hard-drive",{"title":206,"path":207,"stem":208,"icon":209},"NuxtHub","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Fnuxthub","4.integrate\u002Fadapters\u002Fself-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":211,"path":212,"stem":213,"icon":214},"Memory","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Fmemory","4.integrate\u002Fadapters\u002Fself-hosted\u002F03.memory","i-lucide-cpu",{"title":216,"path":217,"stem":218,"children":219,"page":29},"Frameworks","\u002Fintegrate\u002Fframeworks","4.integrate\u002Fframeworks",[220,224,229,234,239,244,249,254,259,264,269,274,279,284,288,293,298],{"title":36,"path":221,"stem":222,"icon":223},"\u002Fintegrate\u002Fframeworks\u002Foverview","4.integrate\u002Fframeworks\u002F00.overview","i-lucide-layout-grid",{"title":225,"path":226,"stem":227,"icon":228},"Nuxt","\u002Fintegrate\u002Fframeworks\u002Fnuxt","4.integrate\u002Fframeworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":230,"path":231,"stem":232,"icon":233},"Next.js","\u002Fintegrate\u002Fframeworks\u002Fnextjs","4.integrate\u002Fframeworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":235,"path":236,"stem":237,"icon":238},"SvelteKit","\u002Fintegrate\u002Fframeworks\u002Fsveltekit","4.integrate\u002Fframeworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":240,"path":241,"stem":242,"icon":243},"Nitro","\u002Fintegrate\u002Fframeworks\u002Fnitro","4.integrate\u002Fframeworks\u002F04.nitro","i-custom-nitro",{"title":245,"path":246,"stem":247,"icon":248},"TanStack Start","\u002Fintegrate\u002Fframeworks\u002Ftanstack-start","4.integrate\u002Fframeworks\u002F05.tanstack-start","i-custom-tanstack",{"title":250,"path":251,"stem":252,"icon":253},"NestJS","\u002Fintegrate\u002Fframeworks\u002Fnestjs","4.integrate\u002Fframeworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":255,"path":256,"stem":257,"icon":258},"Express","\u002Fintegrate\u002Fframeworks\u002Fexpress","4.integrate\u002Fframeworks\u002F07.express","i-simple-icons-express",{"title":260,"path":261,"stem":262,"icon":263},"Hono","\u002Fintegrate\u002Fframeworks\u002Fhono","4.integrate\u002Fframeworks\u002F08.hono","i-simple-icons-hono",{"title":265,"path":266,"stem":267,"icon":268},"Fastify","\u002Fintegrate\u002Fframeworks\u002Ffastify","4.integrate\u002Fframeworks\u002F09.fastify","i-simple-icons-fastify",{"title":270,"path":271,"stem":272,"icon":273},"Elysia","\u002Fintegrate\u002Fframeworks\u002Felysia","4.integrate\u002Fframeworks\u002F10.elysia","i-custom-elysia",{"title":275,"path":276,"stem":277,"icon":278},"React Router","\u002Fintegrate\u002Fframeworks\u002Freact-router","4.integrate\u002Fframeworks\u002F11.react-router","i-custom-reactrouter",{"title":280,"path":281,"stem":282,"icon":283},"Cloudflare Workers","\u002Fintegrate\u002Fframeworks\u002Fcloudflare-workers","4.integrate\u002Fframeworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":285,"path":286,"stem":287,"icon":74},"Standalone","\u002Fintegrate\u002Fframeworks\u002Fstandalone","4.integrate\u002Fframeworks\u002F13.standalone",{"title":289,"path":290,"stem":291,"icon":292},"Astro","\u002Fintegrate\u002Fframeworks\u002Fastro","4.integrate\u002Fframeworks\u002F14.astro","i-simple-icons-astro",{"title":294,"path":295,"stem":296,"icon":297},"oRPC","\u002Fintegrate\u002Fframeworks\u002Forpc","4.integrate\u002Fframeworks\u002F15.orpc","i-lucide-network",{"title":299,"path":300,"stem":301,"icon":302},"AWS Lambda","\u002Fintegrate\u002Fframeworks\u002Faws-lambda","4.integrate\u002Fframeworks\u002F16.aws-lambda","i-custom-lambda",{"title":304,"path":305,"stem":306,"children":307,"page":29},"Use Cases","\u002Fuse-cases","5.use-cases",[308,311,316,345,372,404,425,430],{"title":36,"path":309,"stem":310,"icon":102},"\u002Fuse-cases\u002Foverview","5.use-cases\u002F0.overview",{"title":312,"path":313,"stem":314,"icon":315},"Client Logging","\u002Fuse-cases\u002Fclient-logging","5.use-cases\u002F1.client-logging","i-lucide-monitor",{"title":317,"icon":318,"path":319,"stem":320,"children":321,"page":29},"AI SDK","i-simple-icons-vercel","\u002Fuse-cases\u002Fai-sdk","5.use-cases\u002F2.ai-sdk",[322,325,330,335,340],{"title":36,"path":323,"stem":324,"icon":39},"\u002Fuse-cases\u002Fai-sdk\u002Foverview","5.use-cases\u002F2.ai-sdk\u002F01.overview",{"title":326,"path":327,"stem":328,"icon":329},"Usage","\u002Fuse-cases\u002Fai-sdk\u002Fusage","5.use-cases\u002F2.ai-sdk\u002F02.usage","i-lucide-code",{"title":331,"path":332,"stem":333,"icon":334},"Options","\u002Fuse-cases\u002Fai-sdk\u002Foptions","5.use-cases\u002F2.ai-sdk\u002F03.options","i-lucide-sliders",{"title":336,"path":337,"stem":338,"icon":339},"Metadata","\u002Fuse-cases\u002Fai-sdk\u002Fmetadata","5.use-cases\u002F2.ai-sdk\u002F04.metadata","i-lucide-database",{"title":341,"path":342,"stem":343,"icon":344},"Telemetry","\u002Fuse-cases\u002Fai-sdk\u002Ftelemetry","5.use-cases\u002F2.ai-sdk\u002F05.telemetry","i-lucide-activity",{"title":346,"icon":347,"path":348,"stem":349,"children":350,"page":29},"Better Auth","i-simple-icons-betterauth","\u002Fuse-cases\u002Fbetter-auth","5.use-cases\u002F3.better-auth",[351,354,359,364,368],{"title":36,"path":352,"stem":353,"icon":39},"\u002Fuse-cases\u002Fbetter-auth\u002Foverview","5.use-cases\u002F3.better-auth\u002F01.overview",{"title":355,"path":356,"stem":357,"icon":358},"Identify User","\u002Fuse-cases\u002Fbetter-auth\u002Fidentify-user","5.use-cases\u002F3.better-auth\u002F02.identify-user","i-lucide-user-check",{"title":360,"path":361,"stem":362,"icon":363},"Middleware","\u002Fuse-cases\u002Fbetter-auth\u002Fmiddleware","5.use-cases\u002F3.better-auth\u002F03.middleware","i-lucide-shield",{"title":365,"path":366,"stem":367,"icon":315},"Client Sync","\u002Fuse-cases\u002Fbetter-auth\u002Fclient-sync","5.use-cases\u002F3.better-auth\u002F04.client-sync",{"title":369,"path":370,"stem":371,"icon":107},"Performance","\u002Fuse-cases\u002Fbetter-auth\u002Fperformance","5.use-cases\u002F3.better-auth\u002F05.performance",{"title":373,"icon":374,"path":375,"stem":376,"children":377,"page":29},"Audit Logs","i-lucide-shield-check","\u002Fuse-cases\u002Faudit","5.use-cases\u002F4.audit",[378,381,386,391,396,400],{"title":36,"path":379,"stem":380,"icon":39},"\u002Fuse-cases\u002Faudit\u002Foverview","5.use-cases\u002F4.audit\u002F01.overview",{"title":382,"path":383,"stem":384,"icon":385},"Schema","\u002Fuse-cases\u002Faudit\u002Fschema","5.use-cases\u002F4.audit\u002F02.schema","i-lucide-file-text",{"title":387,"path":388,"stem":389,"icon":390},"Recording","\u002Fuse-cases\u002Faudit\u002Frecording","5.use-cases\u002F4.audit\u002F03.recording","i-lucide-pen-line",{"title":392,"path":393,"stem":394,"icon":395},"Drains","\u002Fuse-cases\u002Faudit\u002Fpipeline","5.use-cases\u002F4.audit\u002F04.pipeline","i-lucide-link",{"title":397,"path":398,"stem":399,"icon":374},"Compliance","\u002Fuse-cases\u002Faudit\u002Fcompliance","5.use-cases\u002F4.audit\u002F05.compliance",{"title":401,"path":402,"stem":403,"icon":79},"Recipes","\u002Fuse-cases\u002Faudit\u002Frecipes","5.use-cases\u002F4.audit\u002F06.recipes",{"title":341,"icon":107,"path":405,"stem":406,"children":407,"page":29},"\u002Fuse-cases\u002Ftelemetry","5.use-cases\u002F4.telemetry",[408,411,416,421],{"title":36,"path":409,"stem":410,"icon":39},"\u002Fuse-cases\u002Ftelemetry\u002Foverview","5.use-cases\u002F4.telemetry\u002F01.overview",{"title":412,"path":413,"stem":414,"icon":415},"Setup","\u002Fuse-cases\u002Ftelemetry\u002Fsetup","5.use-cases\u002F4.telemetry\u002F02.setup","i-lucide-wrench",{"title":417,"path":418,"stem":419,"icon":420},"Ingest","\u002Fuse-cases\u002Ftelemetry\u002Fingest","5.use-cases\u002F4.telemetry\u002F03.ingest","i-lucide-server",{"title":422,"path":423,"stem":424,"icon":79},"Reference","\u002Fuse-cases\u002Ftelemetry\u002Freference","5.use-cases\u002F4.telemetry\u002F04.reference",{"title":426,"path":427,"stem":428,"icon":429},"Enrichers","\u002Fuse-cases\u002Fenrichers","5.use-cases\u002F5.enrichers","i-lucide-sparkles",{"title":431,"path":432,"stem":433,"icon":434},"eve","\u002Fuse-cases\u002Feve","5.use-cases\u002F5.eve","i-custom-eve",{"title":436,"path":437,"stem":438,"children":439,"page":29},"Extend","\u002Fextend","6.extend",[440,444,449,454,459,463,467,471,475,480,485],{"title":36,"path":441,"stem":442,"icon":443},"\u002Fextend\u002Foverview","6.extend\u002F0.overview","i-lucide-blocks",{"title":445,"path":446,"stem":447,"icon":448},"Stream","\u002Fextend\u002Fstream","6.extend\u002F1.stream","i-lucide-radio-tower",{"title":450,"path":451,"stem":452,"icon":453},"Custom framework","\u002Fextend\u002Fcustom-framework","6.extend\u002F10.custom-framework","i-lucide-puzzle",{"title":455,"path":456,"stem":457,"icon":458},"FS reader","\u002Fextend\u002Ffs-reader","6.extend\u002F2.fs-reader","i-lucide-folder-search",{"title":401,"path":460,"stem":461,"icon":462},"\u002Fextend\u002Fconsumer-recipes","6.extend\u002F3.consumer-recipes","i-lucide-chef-hat",{"title":464,"path":465,"stem":466,"icon":443},"Plugins","\u002Fextend\u002Fplugins","6.extend\u002F4.plugins",{"title":468,"path":469,"stem":470,"icon":429},"Custom enrichers","\u002Fextend\u002Fcustom-enrichers","6.extend\u002F5.custom-enrichers",{"title":472,"path":473,"stem":474,"icon":64},"Tail sampling","\u002Fextend\u002Ftail-sampling","6.extend\u002F6.tail-sampling",{"title":476,"path":477,"stem":478,"icon":479},"Identity headers","\u002Fextend\u002Fidentity-headers","6.extend\u002F7.identity-headers","i-lucide-fingerprint",{"title":481,"path":482,"stem":483,"icon":484},"Custom drains","\u002Fextend\u002Fcustom-drains","6.extend\u002F8.custom-drains","i-lucide-share-2",{"title":486,"path":487,"stem":488,"icon":489},"Drain pipeline","\u002Fextend\u002Fdrain-pipeline","6.extend\u002F9.drain-pipeline","i-lucide-workflow",{"title":422,"path":491,"stem":492,"children":493,"page":29},"\u002Freference","7.reference",[494,499,502,507,511,516],{"title":495,"path":496,"stem":497,"icon":498},"Configuration","\u002Freference\u002Fconfiguration","7.reference\u002F1.configuration","i-lucide-settings",{"title":369,"path":500,"stem":501,"icon":107},"\u002Freference\u002Fperformance","7.reference\u002F2.performance",{"title":503,"path":504,"stem":505,"icon":506},"Vite Plugin","\u002Freference\u002Fvite-plugin","7.reference\u002F3.vite-plugin","i-custom-vite",{"title":508,"path":509,"stem":510,"icon":374},"Best Practices","\u002Freference\u002Fbest-practices","7.reference\u002F4.best-practices",{"title":512,"path":513,"stem":514,"icon":515},"vs Other Loggers","\u002Freference\u002Fvs-other-loggers","7.reference\u002F5.vs-other-loggers","i-lucide-scale",{"title":517,"path":518,"stem":519,"icon":429},"Agent Skills","\u002Freference\u002Fagent-skills","7.reference\u002F6.agent-skills",{"id":521,"title":522,"body":523,"description":1184,"extension":1185,"links":1186,"meta":1190,"navigation":1191,"path":86,"seo":1192,"stem":87,"__hash__":1193},"docs\u002F3.cli\u002F0.overview.md","evlog CLI",{"type":524,"value":525,"toc":1174},"minimark",[526,538,554,571,632,635,688,696,701,717,721,724,804,808,822,854,868,872,920,940,944,947,1009,1021,1025,1047,1052,1091,1095,1100,1114,1123,1133,1137,1170],[527,528,529,533,534,537],"p",{},[530,531,532],"code",{},"@evlog\u002Fcli"," is a separate package from ",[530,535,536],{},"evlog"," itself. It never runs in your app: it reads your source on disk, so there is nothing to configure and nothing to deploy.",[527,539,540,541,547,548,553],{},"Its main job is ",[542,543,544],"a",{"href":95},[530,545,546],{},"evlog map"," — a static observability score for your app, in the spirit of Lighthouse. It finds every entry point in your project, checks each one for wide-event coverage, and tells you which three to fix first. ",[542,549,550],{"href":90},[530,551,552],{},"evlog init"," is the one command that writes code rather than reading it: it wires evlog into the app so there is something to score.",[555,556,558,562,563,565,566,570],"warning",{"icon":557},"i-lucide-flask-conical",[559,560,561],"strong",{},"Early days."," The CLI is safe to run on any project — it only reads files, and it is covered by tests — but it is young. ",[530,564,546],{}," understands four frameworks today, its rules are still being refined, and both will grow. Expect verdicts and scores to move between releases, and ",[542,567,569],{"href":568},"\u002Fcli\u002Fci#pin-the-version","pin the version"," when you gate CI on the number.",[572,573,574,602,617],"code-group",{},[575,576,582],"pre",{"className":577,"code":578,"filename":579,"language":580,"meta":581,"style":581},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm dlx @evlog\u002Fcli map\n","pnpm","bash","",[530,583,584],{"__ignoreMap":581},[585,586,589,592,596,599],"span",{"class":587,"line":588},"line",1,[585,590,579],{"class":591},"sBMFI",[585,593,595],{"class":594},"sfazB"," dlx",[585,597,598],{"class":594}," @evlog\u002Fcli",[585,600,601],{"class":594}," map\n",[575,603,606],{"className":577,"code":604,"filename":605,"language":580,"meta":581,"style":581},"bunx @evlog\u002Fcli map\n","bun",[530,607,608],{"__ignoreMap":581},[585,609,610,613,615],{"class":587,"line":588},[585,611,612],{"class":591},"bunx",[585,614,598],{"class":594},[585,616,601],{"class":594},[575,618,621],{"className":577,"code":619,"filename":620,"language":580,"meta":581,"style":581},"npx @evlog\u002Fcli map\n","npm",[530,622,623],{"__ignoreMap":581},[585,624,625,628,630],{"class":587,"line":588},[585,626,627],{"class":591},"npx",[585,629,598],{"class":594},[585,631,601],{"class":594},[527,633,634],{},"Add it as a dev dependency once you gate CI on the score, so every run uses the same version:",[572,636,637,655,671],{},[575,638,640],{"className":577,"code":639,"filename":579,"language":580,"meta":581,"style":581},"pnpm add -D @evlog\u002Fcli\n",[530,641,642],{"__ignoreMap":581},[585,643,644,646,649,652],{"class":587,"line":588},[585,645,579],{"class":591},[585,647,648],{"class":594}," add",[585,650,651],{"class":594}," -D",[585,653,654],{"class":594}," @evlog\u002Fcli\n",[575,656,658],{"className":577,"code":657,"filename":605,"language":580,"meta":581,"style":581},"bun add -d @evlog\u002Fcli\n",[530,659,660],{"__ignoreMap":581},[585,661,662,664,666,669],{"class":587,"line":588},[585,663,605],{"class":591},[585,665,648],{"class":594},[585,667,668],{"class":594}," -d",[585,670,654],{"class":594},[575,672,674],{"className":577,"code":673,"filename":620,"language":580,"meta":581,"style":581},"npm install --save-dev @evlog\u002Fcli\n",[530,675,676],{"__ignoreMap":581},[585,677,678,680,683,686],{"class":587,"line":588},[585,679,620],{"class":591},[585,681,682],{"class":594}," install",[585,684,685],{"class":594}," --save-dev",[585,687,654],{"class":594},[689,690,692,693,695],"callout",{"color":691,"icon":13},"neutral","Requires Node 20 or later. The package installs a single ",[530,694,536],{}," binary.",[697,698,700],"h2",{"id":699},"commands","Commands",[702,703,704,708,711,714],"card-group",{},[705,706,707],"card",{"color":691,"icon":92,"title":89,"to":90},"Install evlog, register the framework integration, and write a local sink.",[705,709,710],{"color":691,"icon":97,"title":94,"to":95},"Score wide-event coverage across every entry point, and name the ones to fix first.",[705,712,713],{"color":691,"icon":117,"title":114,"to":115},"Check that evlog is installed, resolvable, and writing logs where you expect.",[705,715,716],{"color":691,"icon":122,"title":119,"to":120},"Show, enable, or disable the CLI's own anonymous usage telemetry.",[697,718,720],{"id":719},"global-flags","Global flags",[527,722,723],{},"Every command accepts these:",[725,726,727,740],"table",{},[728,729,730],"thead",{},[731,732,733,737],"tr",{},[734,735,736],"th",{},"Flag",[734,738,739],{},"What it does",[741,742,743,754,764,774,784,794],"tbody",{},[731,744,745,751],{},[746,747,748],"td",{},[530,749,750],{},"--json",[746,752,753],{},"Machine-readable JSON on stdout instead of the report",[731,755,756,761],{},[746,757,758],{},[530,759,760],{},"--debug",[746,762,763],{},"Print a debug summary of the run, and emit it as a wide event",[731,765,766,771],{},[746,767,768],{},[530,769,770],{},"--noHeader",[746,772,773],{},"Skip the branded header",[731,775,776,781],{},[746,777,778],{},[530,779,780],{},"--cwd \u003Cdir>",[746,782,783],{},"Run against another directory instead of the current one",[731,785,786,791],{},[746,787,788],{},[530,789,790],{},"--help",[746,792,793],{},"Usage for the command",[731,795,796,801],{},[746,797,798],{},[530,799,800],{},"--version",[746,802,803],{},"Print the CLI version and exit",[697,805,807],{"id":806},"human-output-goes-to-stderr","Human output goes to stderr",[527,809,810,811,814,815,817,818,821],{},"The report you read is written to ",[559,812,813],{},"stderr",". Stdout is reserved for ",[530,816,750],{},", so a run can be piped into ",[530,819,820],{},"jq"," without the report getting in the way:",[575,823,826],{"className":577,"code":824,"filename":825,"language":580,"meta":581,"style":581},"evlog map --json | jq '.map.score'\n","Terminal",[530,827,828],{"__ignoreMap":581},[585,829,830,832,835,838,842,845,848,851],{"class":587,"line":588},[585,831,536],{"class":591},[585,833,834],{"class":594}," map",[585,836,837],{"class":594}," --json",[585,839,841],{"class":840},"sMK4o"," |",[585,843,844],{"class":591}," jq",[585,846,847],{"class":840}," '",[585,849,850],{"class":594},".map.score",[585,852,853],{"class":840},"'\n",[527,855,856,857,859,860,863,864,867],{},"Without ",[530,858,750],{},", nothing is written to stdout at all. Colour is dropped when stdout is not a TTY or when ",[530,861,862],{},"NO_COLOR"," is set, and the report lays itself out for the width it is given — set ",[530,865,866],{},"COLUMNS"," to render at a fixed width.",[697,869,871],{"id":870},"exit-codes","Exit codes",[725,873,874,884],{},[728,875,876],{},[731,877,878,881],{},[734,879,880],{},"Code",[734,882,883],{},"Meaning",[741,885,886,896,910],{},[731,887,888,893],{},[746,889,890],{},[530,891,892],{},"0",[746,894,895],{},"The command ran and nothing failed",[731,897,898,903],{},[746,899,900],{},[530,901,902],{},"1",[746,904,905,906,909],{},"A check failed, or ",[530,907,908],{},"--min-score"," was not met",[731,911,912,917],{},[746,913,914],{},[530,915,916],{},"2",[746,918,919],{},"Usage error — an unknown flag or an invalid value",[555,921,922,923,926,927,931,932,935,936,939],{},"A pipe replaces ",[530,924,925],{},"$?"," with the exit code of the ",[928,929,930],"em",{},"last"," command in it, so ",[530,933,934],{},"evlog map --min-score 90 \\| head"," always looks successful. Use ",[530,937,938],{},"set -o pipefail"," when you pipe a gated run.",[697,941,943],{"id":942},"when-a-check-is-wrong","When a check is wrong",[527,945,946],{},"Every verdict can be turned off from the code it is about, so a false positive never becomes a reason to stop running the tool:",[575,948,953],{"className":949,"code":950,"filename":951,"language":952,"meta":581,"style":581},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F evlog-map-disable-next-line wide-event, context -- liveness probe, deliberately silent\nexport default defineEventHandler(() => ({ ok: true }))\n","server\u002Fapi\u002Fhealth.get.ts","ts",[530,954,955,961],{"__ignoreMap":581},[585,956,957],{"class":587,"line":588},[585,958,960],{"class":959},"sHwdD","\u002F\u002F evlog-map-disable-next-line wide-event, context -- liveness probe, deliberately silent\n",[585,962,964,968,971,975,979,982,986,989,992,996,999,1003,1006],{"class":587,"line":963},2,[585,965,967],{"class":966},"s7zQu","export",[585,969,970],{"class":966}," default",[585,972,974],{"class":973},"s2Zo4"," defineEventHandler",[585,976,978],{"class":977},"sTEyZ","(",[585,980,981],{"class":840},"()",[585,983,985],{"class":984},"spNyl"," =>",[585,987,988],{"class":977}," (",[585,990,991],{"class":840},"{",[585,993,995],{"class":994},"swJcz"," ok",[585,997,998],{"class":840},":",[585,1000,1002],{"class":1001},"sfNiH"," true",[585,1004,1005],{"class":840}," }",[585,1007,1008],{"class":977},"))\n",[527,1010,1011,1012,1015,1016,1020],{},"The check becomes ",[530,1013,1014],{},"n\u002Fa"," with your reason attached — no score cost, no failed gate — and the report counts how many checks the project disabled, so the number stays honest. ",[542,1017,1019],{"href":1018},"\u002Fcli\u002Frules#disabling-a-check","Full syntax",".",[697,1022,1024],{"id":1023},"monorepos","Monorepos",[527,1026,1027,1029,1030,1032,1033,1035,1036,1039,1040,1043,1044,1046],{},[530,1028,89],{},", ",[530,1031,94],{}," and ",[530,1034,114],{}," all resolve the nearest ",[530,1037,1038],{},"package.json"," above the working directory, then treat that package as the project. In a pnpm or npm workspace, running from ",[530,1041,1042],{},"apps\u002Fweb"," scans ",[530,1045,1042],{}," — not the repo root.",[527,1048,1049,1051],{},[530,1050,546],{}," scans one app at a time. Running it from a bare workspace root, where there is no framework to detect, is an error rather than an empty report:",[575,1053,1055],{"className":577,"code":1054,"filename":825,"language":580,"meta":581,"style":581},"cd apps\u002Fweb && evlog map\n# or\nevlog map --cwd apps\u002Fweb\n",[530,1056,1057,1073,1078],{"__ignoreMap":581},[585,1058,1059,1062,1065,1068,1071],{"class":587,"line":588},[585,1060,1061],{"class":973},"cd",[585,1063,1064],{"class":594}," apps\u002Fweb",[585,1066,1067],{"class":840}," &&",[585,1069,1070],{"class":591}," evlog",[585,1072,601],{"class":594},[585,1074,1075],{"class":587,"line":963},[585,1076,1077],{"class":959},"# or\n",[585,1079,1081,1083,1085,1088],{"class":587,"line":1080},3,[585,1082,536],{"class":591},[585,1084,834],{"class":594},[585,1086,1087],{"class":594}," --cwd",[585,1089,1090],{"class":594}," apps\u002Fweb\n",[697,1092,1094],{"id":1093},"debugging-a-run","Debugging a run",[527,1096,1097,1099],{},[530,1098,760],{}," prints what the command did — the steps it went through, the directory it resolved, and any findings — and emits the same information as an evlog wide event:",[575,1101,1103],{"className":577,"code":1102,"filename":825,"language":580,"meta":581,"style":581},"evlog map --debug\n",[530,1104,1105],{"__ignoreMap":581},[585,1106,1107,1109,1111],{"class":587,"line":588},[585,1108,536],{"class":591},[585,1110,834],{"class":594},[585,1112,1113],{"class":594}," --debug\n",[575,1115,1121],{"className":1116,"code":1118,"filename":1119,"language":1120,"meta":581},[1117],"language-text","── debug ────────────────────────────────\ncommand  map\nenv      development\ncwd      \u002FUsers\u002Fyou\u002Fapps\u002Fweb\nsteps    resolveProject → detectFramework → resolveEvlog → scan → writeMapFile → done\n──────────────────────────────────────────\nfull event → --json --debug  (stderr)\n","Output","text",[530,1122,1118],{"__ignoreMap":581},[527,1124,1125,1126,1128,1129,1132],{},"Add ",[530,1127,750],{}," to get the whole event instead of the summary. ",[530,1130,1131],{},"EVLOG_CLI_DEBUG=1"," does the same as the flag, which is useful in a CI job you cannot easily edit.",[697,1134,1136],{"id":1135},"next","Next",[1138,1139,1140,1148,1155,1160,1165],"ul",{},[1141,1142,1143,1147],"li",{},[542,1144,1145],{"href":90},[530,1146,552],{}," — wire evlog into an app that does not have it yet",[1141,1149,1150,1154],{},[542,1151,1152],{"href":95},[530,1153,546],{}," — what it scans and how to read the report",[1141,1156,1157,1159],{},[542,1158,99],{"href":100}," — every check, what satisfies it, and how to fix it",[1141,1161,1162,1164],{},[542,1163,104],{"href":105}," — how the number is calculated",[1141,1166,1167,1169],{},[542,1168,109],{"href":110}," — gate a pull request on the score",[1171,1172,1173],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":581,"searchDepth":963,"depth":963,"links":1175},[1176,1177,1178,1179,1180,1181,1182,1183],{"id":699,"depth":963,"text":700},{"id":719,"depth":963,"text":720},{"id":806,"depth":963,"text":807},{"id":870,"depth":963,"text":871},{"id":942,"depth":963,"text":943},{"id":1023,"depth":963,"text":1024},{"id":1093,"depth":963,"text":1094},{"id":1135,"depth":963,"text":1136},"The evlog command line — map your app's observability coverage, diagnose your setup, and control telemetry. Install, global flags, output streams, exit codes, and monorepo behaviour.","md",[1187,1189],{"label":546,"icon":97,"to":95,"color":691,"variant":1188},"subtle",{"label":99,"icon":102,"to":100,"color":691,"variant":1188},{},{"title":36,"icon":44},{"title":522,"description":1184},"KNsofm5RwAP2Vzakal4-9yTXzz5x2EdbvdICJyMd-e8",[1195,1197],{"title":76,"path":77,"stem":78,"description":1196,"icon":79,"children":-1},"Scale typed error and audit catalogs from a single file to multi-package monorepos. Conventions, npm packaging recipe, composition patterns, and the type-augmentation deep dive.",{"title":89,"path":90,"stem":91,"description":1198,"icon":92,"children":-1},"Wire evlog into an existing app — an interactive setup that installs the package, registers the framework integration, and wires the destination you pick. Fully driveable by flags for CI and agents.",1785609786110]