[{"data":1,"prerenderedAt":2170},["ShallowReactive",2],{"navigation_docs":3,"-cli-config":612,"-cli-config-surround":2165},[4,35,85,148,328,489,548,587],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Start","\u002Fstart","1.start",[9,14,19,24,29],{"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",{"title":30,"path":31,"stem":32,"icon":33},"Choose your logger","\u002Fstart\u002Ftypescript-logging-library","1.start\u002F5.typescript-logging-library","i-lucide-file-code",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Learn","\u002Flearn","2.learn",[40,45,50,55,60,65,70,75,80],{"title":41,"path":42,"stem":43,"icon":44},"Overview","\u002Flearn\u002Foverview","2.learn\u002F0.overview","i-lucide-list",{"title":46,"path":47,"stem":48,"icon":49},"Simple Logging","\u002Flearn\u002Fsimple-logging","2.learn\u002F1.simple-logging","i-lucide-terminal",{"title":51,"path":52,"stem":53,"icon":54},"Wide Events","\u002Flearn\u002Fwide-events","2.learn\u002F2.wide-events","i-lucide-layers",{"title":56,"path":57,"stem":58,"icon":59},"Structured Errors","\u002Flearn\u002Fstructured-errors","2.learn\u002F3.structured-errors","i-lucide-shield-alert",{"title":61,"path":62,"stem":63,"icon":64},"Lifecycle","\u002Flearn\u002Flifecycle","2.learn\u002F4.lifecycle","i-lucide-arrow-right-left",{"title":66,"path":67,"stem":68,"icon":69},"Sampling","\u002Flearn\u002Fsampling","2.learn\u002F5.sampling","i-lucide-filter",{"title":71,"path":72,"stem":73,"icon":74},"Auto-Redaction","\u002Flearn\u002Fredaction","2.learn\u002F6.redaction","i-lucide-eye-off",{"title":76,"path":77,"stem":78,"icon":79},"Typed Fields","\u002Flearn\u002Ftyped-fields","2.learn\u002F7.typed-fields","i-simple-icons-typescript",{"title":81,"path":82,"stem":83,"icon":84},"Catalogs","\u002Flearn\u002Fcatalogs","2.learn\u002F8.catalogs","i-lucide-book-open",{"title":86,"path":87,"stem":88,"children":89,"page":34},"CLI","\u002Fcli","3.cli",[90,93,98,103,108,113,118,123,128,133,138,143],{"title":41,"path":91,"stem":92,"icon":49},"\u002Fcli\u002Foverview","3.cli\u002F0.overview",{"title":94,"path":95,"stem":96,"icon":97},"init","\u002Fcli\u002Finit","3.cli\u002F1.init","i-lucide-wand-sparkles",{"title":99,"path":100,"stem":101,"icon":102},"logs","\u002Fcli\u002Flogs","3.cli\u002F10.logs","i-lucide-scroll-text",{"title":104,"path":105,"stem":106,"icon":107},"config","\u002Fcli\u002Fconfig","3.cli\u002F11.config","i-lucide-settings-2",{"title":109,"path":110,"stem":111,"icon":112},"map","\u002Fcli\u002Fmap","3.cli\u002F2.map","i-lucide-radar",{"title":114,"path":115,"stem":116,"icon":117},"Rules","\u002Fcli\u002Frules","3.cli\u002F3.rules","i-lucide-list-checks",{"title":119,"path":120,"stem":121,"icon":122},"Scoring","\u002Fcli\u002Fscoring","3.cli\u002F4.scoring","i-lucide-gauge",{"title":124,"path":125,"stem":126,"icon":127},"CI","\u002Fcli\u002Fci","3.cli\u002F5.ci","i-lucide-git-pull-request",{"title":129,"path":130,"stem":131,"icon":132},"doctor","\u002Fcli\u002Fdoctor","3.cli\u002F6.doctor","i-lucide-stethoscope",{"title":134,"path":135,"stem":136,"icon":137},"telemetry","\u002Fcli\u002Ftelemetry","3.cli\u002F7.telemetry","i-lucide-bar-chart-3",{"title":139,"path":140,"stem":141,"icon":142},"agents","\u002Fcli\u002Fagents","3.cli\u002F8.agents","i-lucide-bot",{"title":144,"path":145,"stem":146,"icon":147},"Observability Score","\u002Fcli\u002Fobservability-score","3.cli\u002F9.observability-score","i-lucide-activity",{"title":149,"path":150,"stem":151,"children":152,"page":34},"Integrate","\u002Fintegrate","4.integrate",[153,157,240],{"title":41,"path":154,"stem":155,"icon":156},"\u002Fintegrate\u002Foverview","4.integrate\u002F0.overview","i-lucide-plug",{"title":158,"path":159,"stem":160,"children":161,"page":34},"Adapters","\u002Fintegrate\u002Fadapters","4.integrate\u002Fadapters",[162,165,195,220],{"title":41,"path":163,"stem":164,"icon":44},"\u002Fintegrate\u002Fadapters\u002Foverview","4.integrate\u002Fadapters\u002F01.overview",{"title":166,"path":167,"stem":168,"children":169,"page":34},"Cloud","\u002Fintegrate\u002Fadapters\u002Fcloud","4.integrate\u002Fadapters\u002Fcloud",[170,175,180,185,190],{"title":171,"path":172,"stem":173,"icon":174},"Axiom","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Faxiom","4.integrate\u002Fadapters\u002Fcloud\u002F01.axiom","i-custom-axiom",{"title":176,"path":177,"stem":178,"icon":179},"PostHog","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fposthog","4.integrate\u002Fadapters\u002Fcloud\u002F02.posthog","i-simple-icons-posthog",{"title":181,"path":182,"stem":183,"icon":184},"Sentry","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fsentry","4.integrate\u002Fadapters\u002Fcloud\u002F03.sentry","i-simple-icons-sentry",{"title":186,"path":187,"stem":188,"icon":189},"Better Stack","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fbetter-stack","4.integrate\u002Fadapters\u002Fcloud\u002F04.better-stack","i-simple-icons-betterstack",{"title":191,"path":192,"stem":193,"icon":194},"Datadog","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fdatadog","4.integrate\u002Fadapters\u002Fcloud\u002F05.datadog","i-simple-icons-datadog",{"title":196,"path":197,"stem":198,"children":199,"page":34},"Cloud or Self-Hosted","\u002Fintegrate\u002Fadapters\u002Fhybrid","4.integrate\u002Fadapters\u002Fhybrid",[200,205,210,215],{"title":201,"path":202,"stem":203,"icon":204},"Grafana Loki","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Floki","4.integrate\u002Fadapters\u002Fhybrid\u002F01.loki","i-simple-icons-grafana",{"title":206,"path":207,"stem":208,"icon":209},"ClickHouse","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fclickhouse","4.integrate\u002Fadapters\u002Fhybrid\u002F02.clickhouse","i-simple-icons-clickhouse",{"title":211,"path":212,"stem":213,"icon":214},"OTLP","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fotlp","4.integrate\u002Fadapters\u002Fhybrid\u002F03.otlp","i-simple-icons-opentelemetry",{"title":216,"path":217,"stem":218,"icon":219},"HyperDX","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fhyperdx","4.integrate\u002Fadapters\u002Fhybrid\u002F04.hyperdx","i-custom-hyperdx",{"title":221,"path":222,"stem":223,"children":224,"page":34},"Self-Hosted","\u002Fintegrate\u002Fadapters\u002Fself-hosted","4.integrate\u002Fadapters\u002Fself-hosted",[225,230,235],{"title":226,"path":227,"stem":228,"icon":229},"File System","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Ffs","4.integrate\u002Fadapters\u002Fself-hosted\u002F01.fs","i-lucide-hard-drive",{"title":231,"path":232,"stem":233,"icon":234},"NuxtHub","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Fnuxthub","4.integrate\u002Fadapters\u002Fself-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":236,"path":237,"stem":238,"icon":239},"Memory","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Fmemory","4.integrate\u002Fadapters\u002Fself-hosted\u002F03.memory","i-lucide-cpu",{"title":241,"path":242,"stem":243,"children":244,"page":34},"Frameworks","\u002Fintegrate\u002Fframeworks","4.integrate\u002Fframeworks",[245,249,254,259,264,269,274,279,284,289,294,299,304,309,313,318,323],{"title":41,"path":246,"stem":247,"icon":248},"\u002Fintegrate\u002Fframeworks\u002Foverview","4.integrate\u002Fframeworks\u002F00.overview","i-lucide-layout-grid",{"title":250,"path":251,"stem":252,"icon":253},"Nuxt","\u002Fintegrate\u002Fframeworks\u002Fnuxt","4.integrate\u002Fframeworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":255,"path":256,"stem":257,"icon":258},"Next.js","\u002Fintegrate\u002Fframeworks\u002Fnextjs","4.integrate\u002Fframeworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":260,"path":261,"stem":262,"icon":263},"SvelteKit","\u002Fintegrate\u002Fframeworks\u002Fsveltekit","4.integrate\u002Fframeworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":265,"path":266,"stem":267,"icon":268},"Nitro","\u002Fintegrate\u002Fframeworks\u002Fnitro","4.integrate\u002Fframeworks\u002F04.nitro","i-custom-nitro",{"title":270,"path":271,"stem":272,"icon":273},"TanStack Start","\u002Fintegrate\u002Fframeworks\u002Ftanstack-start","4.integrate\u002Fframeworks\u002F05.tanstack-start","i-custom-tanstack",{"title":275,"path":276,"stem":277,"icon":278},"NestJS","\u002Fintegrate\u002Fframeworks\u002Fnestjs","4.integrate\u002Fframeworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":280,"path":281,"stem":282,"icon":283},"Express","\u002Fintegrate\u002Fframeworks\u002Fexpress","4.integrate\u002Fframeworks\u002F07.express","i-simple-icons-express",{"title":285,"path":286,"stem":287,"icon":288},"Hono","\u002Fintegrate\u002Fframeworks\u002Fhono","4.integrate\u002Fframeworks\u002F08.hono","i-simple-icons-hono",{"title":290,"path":291,"stem":292,"icon":293},"Fastify","\u002Fintegrate\u002Fframeworks\u002Ffastify","4.integrate\u002Fframeworks\u002F09.fastify","i-simple-icons-fastify",{"title":295,"path":296,"stem":297,"icon":298},"Elysia","\u002Fintegrate\u002Fframeworks\u002Felysia","4.integrate\u002Fframeworks\u002F10.elysia","i-custom-elysia",{"title":300,"path":301,"stem":302,"icon":303},"React Router","\u002Fintegrate\u002Fframeworks\u002Freact-router","4.integrate\u002Fframeworks\u002F11.react-router","i-custom-reactrouter",{"title":305,"path":306,"stem":307,"icon":308},"Cloudflare Workers","\u002Fintegrate\u002Fframeworks\u002Fcloudflare-workers","4.integrate\u002Fframeworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":310,"path":311,"stem":312,"icon":79},"Standalone","\u002Fintegrate\u002Fframeworks\u002Fstandalone","4.integrate\u002Fframeworks\u002F13.standalone",{"title":314,"path":315,"stem":316,"icon":317},"Astro","\u002Fintegrate\u002Fframeworks\u002Fastro","4.integrate\u002Fframeworks\u002F14.astro","i-simple-icons-astro",{"title":319,"path":320,"stem":321,"icon":322},"oRPC","\u002Fintegrate\u002Fframeworks\u002Forpc","4.integrate\u002Fframeworks\u002F15.orpc","i-lucide-network",{"title":324,"path":325,"stem":326,"icon":327},"AWS Lambda","\u002Fintegrate\u002Fframeworks\u002Faws-lambda","4.integrate\u002Fframeworks\u002F16.aws-lambda","i-custom-lambda",{"title":329,"path":330,"stem":331,"children":332,"page":34},"Use Cases","\u002Fuse-cases","5.use-cases",[333,336,341,369,396,428,449,454,459,463],{"title":41,"path":334,"stem":335,"icon":117},"\u002Fuse-cases\u002Foverview","5.use-cases\u002F0.overview",{"title":337,"path":338,"stem":339,"icon":340},"Client Logging","\u002Fuse-cases\u002Fclient-logging","5.use-cases\u002F1.client-logging","i-lucide-monitor",{"title":342,"icon":343,"path":344,"stem":345,"children":346,"page":34},"AI SDK","i-simple-icons-vercel","\u002Fuse-cases\u002Fai-sdk","5.use-cases\u002F2.ai-sdk",[347,350,355,360,365],{"title":41,"path":348,"stem":349,"icon":44},"\u002Fuse-cases\u002Fai-sdk\u002Foverview","5.use-cases\u002F2.ai-sdk\u002F01.overview",{"title":351,"path":352,"stem":353,"icon":354},"Usage","\u002Fuse-cases\u002Fai-sdk\u002Fusage","5.use-cases\u002F2.ai-sdk\u002F02.usage","i-lucide-code",{"title":356,"path":357,"stem":358,"icon":359},"Options","\u002Fuse-cases\u002Fai-sdk\u002Foptions","5.use-cases\u002F2.ai-sdk\u002F03.options","i-lucide-sliders",{"title":361,"path":362,"stem":363,"icon":364},"Metadata","\u002Fuse-cases\u002Fai-sdk\u002Fmetadata","5.use-cases\u002F2.ai-sdk\u002F04.metadata","i-lucide-database",{"title":366,"path":367,"stem":368,"icon":147},"Telemetry","\u002Fuse-cases\u002Fai-sdk\u002Ftelemetry","5.use-cases\u002F2.ai-sdk\u002F05.telemetry",{"title":370,"icon":371,"path":372,"stem":373,"children":374,"page":34},"Better Auth","i-simple-icons-betterauth","\u002Fuse-cases\u002Fbetter-auth","5.use-cases\u002F3.better-auth",[375,378,383,388,392],{"title":41,"path":376,"stem":377,"icon":44},"\u002Fuse-cases\u002Fbetter-auth\u002Foverview","5.use-cases\u002F3.better-auth\u002F01.overview",{"title":379,"path":380,"stem":381,"icon":382},"Identify User","\u002Fuse-cases\u002Fbetter-auth\u002Fidentify-user","5.use-cases\u002F3.better-auth\u002F02.identify-user","i-lucide-user-check",{"title":384,"path":385,"stem":386,"icon":387},"Middleware","\u002Fuse-cases\u002Fbetter-auth\u002Fmiddleware","5.use-cases\u002F3.better-auth\u002F03.middleware","i-lucide-shield",{"title":389,"path":390,"stem":391,"icon":340},"Client Sync","\u002Fuse-cases\u002Fbetter-auth\u002Fclient-sync","5.use-cases\u002F3.better-auth\u002F04.client-sync",{"title":393,"path":394,"stem":395,"icon":122},"Performance","\u002Fuse-cases\u002Fbetter-auth\u002Fperformance","5.use-cases\u002F3.better-auth\u002F05.performance",{"title":397,"icon":398,"path":399,"stem":400,"children":401,"page":34},"Audit Logs","i-lucide-shield-check","\u002Fuse-cases\u002Faudit","5.use-cases\u002F4.audit",[402,405,410,415,420,424],{"title":41,"path":403,"stem":404,"icon":44},"\u002Fuse-cases\u002Faudit\u002Foverview","5.use-cases\u002F4.audit\u002F01.overview",{"title":406,"path":407,"stem":408,"icon":409},"Schema","\u002Fuse-cases\u002Faudit\u002Fschema","5.use-cases\u002F4.audit\u002F02.schema","i-lucide-file-text",{"title":411,"path":412,"stem":413,"icon":414},"Recording","\u002Fuse-cases\u002Faudit\u002Frecording","5.use-cases\u002F4.audit\u002F03.recording","i-lucide-pen-line",{"title":416,"path":417,"stem":418,"icon":419},"Drains","\u002Fuse-cases\u002Faudit\u002Fpipeline","5.use-cases\u002F4.audit\u002F04.pipeline","i-lucide-link",{"title":421,"path":422,"stem":423,"icon":398},"Compliance","\u002Fuse-cases\u002Faudit\u002Fcompliance","5.use-cases\u002F4.audit\u002F05.compliance",{"title":425,"path":426,"stem":427,"icon":84},"Recipes","\u002Fuse-cases\u002Faudit\u002Frecipes","5.use-cases\u002F4.audit\u002F06.recipes",{"title":366,"icon":122,"path":429,"stem":430,"children":431,"page":34},"\u002Fuse-cases\u002Ftelemetry","5.use-cases\u002F4.telemetry",[432,435,440,445],{"title":41,"path":433,"stem":434,"icon":44},"\u002Fuse-cases\u002Ftelemetry\u002Foverview","5.use-cases\u002F4.telemetry\u002F01.overview",{"title":436,"path":437,"stem":438,"icon":439},"Setup","\u002Fuse-cases\u002Ftelemetry\u002Fsetup","5.use-cases\u002F4.telemetry\u002F02.setup","i-lucide-wrench",{"title":441,"path":442,"stem":443,"icon":444},"Ingest","\u002Fuse-cases\u002Ftelemetry\u002Fingest","5.use-cases\u002F4.telemetry\u002F03.ingest","i-lucide-server",{"title":446,"path":447,"stem":448,"icon":84},"Reference","\u002Fuse-cases\u002Ftelemetry\u002Freference","5.use-cases\u002F4.telemetry\u002F04.reference",{"title":450,"path":451,"stem":452,"icon":453},"Enrichers","\u002Fuse-cases\u002Fenrichers","5.use-cases\u002F5.enrichers","i-lucide-sparkles",{"title":455,"path":456,"stem":457,"icon":458},"eve","\u002Fuse-cases\u002Feve","5.use-cases\u002F5.eve","i-custom-eve",{"title":460,"path":461,"stem":462,"icon":444},"Node.js request logging","\u002Fuse-cases\u002Fstructured-logging-nodejs","5.use-cases\u002F6.structured-logging-nodejs",{"title":464,"icon":465,"path":466,"stem":467,"children":468,"page":34},"Signals","i-lucide-scan-search","\u002Fuse-cases\u002Fsignals","5.use-cases\u002F7.signals",[469,472,477,482,485],{"title":41,"path":470,"stem":471,"icon":44},"\u002Fuse-cases\u002Fsignals\u002Foverview","5.use-cases\u002F7.signals\u002F01.overview",{"title":473,"path":474,"stem":475,"icon":476},"What You Can Ask","\u002Fuse-cases\u002Fsignals\u002Fask","5.use-cases\u002F7.signals\u002F02.ask","i-lucide-message-circle-question",{"title":478,"path":479,"stem":480,"icon":481},"What It Costs","\u002Fuse-cases\u002Fsignals\u002Fcost","5.use-cases\u002F7.signals\u002F03.cost","i-lucide-coins",{"title":446,"path":483,"stem":484,"icon":84},"\u002Fuse-cases\u002Fsignals\u002Freference","5.use-cases\u002F7.signals\u002F04.reference",{"title":425,"path":486,"stem":487,"icon":488},"\u002Fuse-cases\u002Fsignals\u002Frecipes","5.use-cases\u002F7.signals\u002F05.recipes","i-lucide-lightbulb",{"title":490,"path":491,"stem":492,"children":493,"page":34},"Extend","\u002Fextend","6.extend",[494,498,503,508,512,517,521,525,529,533,538,543],{"title":41,"path":495,"stem":496,"icon":497},"\u002Fextend\u002Foverview","6.extend\u002F0.overview","i-lucide-blocks",{"title":499,"path":500,"stem":501,"icon":502},"Stream","\u002Fextend\u002Fstream","6.extend\u002F1.stream","i-lucide-radio-tower",{"title":504,"path":505,"stem":506,"icon":507},"Custom framework","\u002Fextend\u002Fcustom-framework","6.extend\u002F10.custom-framework","i-lucide-puzzle",{"title":509,"path":510,"stem":511,"icon":502},"Diagnostics channel","\u002Fextend\u002Fdiagnostics-channel","6.extend\u002F11.diagnostics-channel",{"title":513,"path":514,"stem":515,"icon":516},"FS reader","\u002Fextend\u002Ffs-reader","6.extend\u002F2.fs-reader","i-lucide-folder-search",{"title":425,"path":518,"stem":519,"icon":520},"\u002Fextend\u002Fconsumer-recipes","6.extend\u002F3.consumer-recipes","i-lucide-chef-hat",{"title":522,"path":523,"stem":524,"icon":497},"Plugins","\u002Fextend\u002Fplugins","6.extend\u002F4.plugins",{"title":526,"path":527,"stem":528,"icon":453},"Custom enrichers","\u002Fextend\u002Fcustom-enrichers","6.extend\u002F5.custom-enrichers",{"title":530,"path":531,"stem":532,"icon":69},"Tail sampling","\u002Fextend\u002Ftail-sampling","6.extend\u002F6.tail-sampling",{"title":534,"path":535,"stem":536,"icon":537},"Identity headers","\u002Fextend\u002Fidentity-headers","6.extend\u002F7.identity-headers","i-lucide-fingerprint",{"title":539,"path":540,"stem":541,"icon":542},"Custom drains","\u002Fextend\u002Fcustom-drains","6.extend\u002F8.custom-drains","i-lucide-share-2",{"title":544,"path":545,"stem":546,"icon":547},"Drain pipeline","\u002Fextend\u002Fdrain-pipeline","6.extend\u002F9.drain-pipeline","i-lucide-workflow",{"title":446,"path":549,"stem":550,"children":551,"page":34},"\u002Freference","7.reference",[552,556,561,564,569,573,578,582],{"title":41,"path":553,"stem":554,"icon":555},"\u002Freference\u002Foverview","7.reference\u002F0.overview","i-lucide-book-marked",{"title":557,"path":558,"stem":559,"icon":560},"Configuration","\u002Freference\u002Fconfiguration","7.reference\u002F1.configuration","i-lucide-settings",{"title":393,"path":562,"stem":563,"icon":122},"\u002Freference\u002Fperformance","7.reference\u002F2.performance",{"title":565,"path":566,"stem":567,"icon":568},"Vite Plugin","\u002Freference\u002Fvite-plugin","7.reference\u002F3.vite-plugin","i-custom-vite",{"title":570,"path":571,"stem":572,"icon":398},"Best Practices","\u002Freference\u002Fbest-practices","7.reference\u002F4.best-practices",{"title":574,"path":575,"stem":576,"icon":577},"vs Other Loggers","\u002Freference\u002Fvs-other-loggers","7.reference\u002F5.vs-other-loggers","i-lucide-scale",{"title":579,"path":580,"stem":581,"icon":453},"Agent Skills","\u002Freference\u002Fagent-skills","7.reference\u002F6.agent-skills",{"title":583,"path":584,"stem":585,"icon":586},"Cost","\u002Freference\u002Fcost","7.reference\u002F7.cost","i-lucide-receipt",{"title":588,"path":589,"stem":590,"children":591,"page":34},"Compare","\u002Fcompare","8.compare",[592,596,600,604,608],{"title":593,"path":594,"stem":595,"icon":577},"evlog vs Pino","\u002Fcompare\u002Fpino","8.compare\u002F1.pino",{"title":597,"path":598,"stem":599,"icon":214},"evlog vs OpenTelemetry","\u002Fcompare\u002Fopentelemetry","8.compare\u002F2.opentelemetry",{"title":601,"path":602,"stem":603,"icon":577},"evlog vs LogTape","\u002Fcompare\u002Flogtape","8.compare\u002F3.logtape",{"title":605,"path":606,"stem":607,"icon":577},"evlog vs Winston: formats and request events","\u002Fcompare\u002Fwinston","8.compare\u002F4.winston",{"title":609,"path":610,"stem":611,"icon":577},"evlog vs Consola: reporters and request context","\u002Fcompare\u002Fconsola","8.compare\u002F5.consola",{"id":613,"title":614,"body":615,"description":2153,"extension":2154,"links":2155,"meta":2161,"navigation":2162,"path":105,"seo":2163,"stem":106,"__hash__":2164},"docs\u002F3.cli\u002F11.config.md","evlog.config",{"type":616,"value":617,"toc":2142},"minimark",[618,635,638,1104,1110,1126,1135,1146,1188,1193,1211,1224,1228,1236,1341,1358,1372,1378,1393,1397,1405,1459,1474,1478,1493,1499,1510,1517,1526,1610,1622,1625,1739,1742,1748,1754,1760,1765,1771,1775,1797,1963,1982,1986,2005,2108,2111,2117,2121,2138],[619,620,621,622,626,627,630,631,634],"p",{},"Without a config file, the CI gate is a flag on every ",[623,624,625],"code",{},"evlog map"," run, a check you decided not to care about is disabled file by file, and sampling and redaction live in whichever file calls ",[623,628,629],{},"initLogger",". ",[623,632,633],{},"evlog.config.ts"," holds all of it, and a preset carries it from one repository to the next. The CLI reads the file without running it, and the app imports it like any other module.",[619,636,637],{},"Here an app builds on a shared preset, turns a check back on, and leaves its dev routes out of the map:",[639,640,641,924],"code-group",{},[642,643,648],"pre",{"className":644,"code":645,"filename":633,"language":646,"meta":647,"style":647},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { defineEvlog } from 'evlog'\nimport { createAxiomDrain } from 'evlog\u002Faxiom'\nimport preset from '.\u002Fevlog.preset'\n\nexport default defineEvlog({\n  extends: preset,\n  service: 'checkout',\n  drain: createAxiomDrain(),\n  sampling: { rates: { info: 25 } },\n  map: {\n    rules: { 'audit-coverage': 'on' },\n    ignore: ['src\u002Froutes\u002F_dev\u002F**'],\n  },\n  logs: { limit: 100 },\n})\n","ts","",[623,649,650,683,704,722,729,747,763,781,796,827,838,866,889,895,915],{"__ignoreMap":647},[651,652,655,659,663,667,670,673,676,680],"span",{"class":653,"line":654},"line",1,[651,656,658],{"class":657},"s7zQu","import",[651,660,662],{"class":661},"sMK4o"," {",[651,664,666],{"class":665},"sTEyZ"," defineEvlog",[651,668,669],{"class":661}," }",[651,671,672],{"class":657}," from",[651,674,675],{"class":661}," '",[651,677,679],{"class":678},"sfazB","evlog",[651,681,682],{"class":661},"'\n",[651,684,686,688,690,693,695,697,699,702],{"class":653,"line":685},2,[651,687,658],{"class":657},[651,689,662],{"class":661},[651,691,692],{"class":665}," createAxiomDrain",[651,694,669],{"class":661},[651,696,672],{"class":657},[651,698,675],{"class":661},[651,700,701],{"class":678},"evlog\u002Faxiom",[651,703,682],{"class":661},[651,705,707,709,712,715,717,720],{"class":653,"line":706},3,[651,708,658],{"class":657},[651,710,711],{"class":665}," preset ",[651,713,714],{"class":657},"from",[651,716,675],{"class":661},[651,718,719],{"class":678},".\u002Fevlog.preset",[651,721,682],{"class":661},[651,723,725],{"class":653,"line":724},4,[651,726,728],{"emptyLinePlaceholder":727},true,"\n",[651,730,732,735,738,741,744],{"class":653,"line":731},5,[651,733,734],{"class":657},"export",[651,736,737],{"class":657}," default",[651,739,666],{"class":740},"s2Zo4",[651,742,743],{"class":665},"(",[651,745,746],{"class":661},"{\n",[651,748,750,754,757,760],{"class":653,"line":749},6,[651,751,753],{"class":752},"swJcz","  extends",[651,755,756],{"class":661},":",[651,758,759],{"class":665}," preset",[651,761,762],{"class":661},",\n",[651,764,766,769,771,773,776,779],{"class":653,"line":765},7,[651,767,768],{"class":752},"  service",[651,770,756],{"class":661},[651,772,675],{"class":661},[651,774,775],{"class":678},"checkout",[651,777,778],{"class":661},"'",[651,780,762],{"class":661},[651,782,784,787,789,791,794],{"class":653,"line":783},8,[651,785,786],{"class":752},"  drain",[651,788,756],{"class":661},[651,790,692],{"class":740},[651,792,793],{"class":665},"()",[651,795,762],{"class":661},[651,797,799,802,804,806,809,811,813,816,818,822,824],{"class":653,"line":798},9,[651,800,801],{"class":752},"  sampling",[651,803,756],{"class":661},[651,805,662],{"class":661},[651,807,808],{"class":752}," rates",[651,810,756],{"class":661},[651,812,662],{"class":661},[651,814,815],{"class":752}," info",[651,817,756],{"class":661},[651,819,821],{"class":820},"sbssI"," 25",[651,823,669],{"class":661},[651,825,826],{"class":661}," },\n",[651,828,830,833,835],{"class":653,"line":829},10,[651,831,832],{"class":752},"  map",[651,834,756],{"class":661},[651,836,837],{"class":661}," {\n",[651,839,841,844,846,848,850,853,855,857,859,862,864],{"class":653,"line":840},11,[651,842,843],{"class":752},"    rules",[651,845,756],{"class":661},[651,847,662],{"class":661},[651,849,675],{"class":661},[651,851,852],{"class":752},"audit-coverage",[651,854,778],{"class":661},[651,856,756],{"class":661},[651,858,675],{"class":661},[651,860,861],{"class":678},"on",[651,863,778],{"class":661},[651,865,826],{"class":661},[651,867,869,872,874,877,879,882,884,887],{"class":653,"line":868},12,[651,870,871],{"class":752},"    ignore",[651,873,756],{"class":661},[651,875,876],{"class":665}," [",[651,878,778],{"class":661},[651,880,881],{"class":678},"src\u002Froutes\u002F_dev\u002F**",[651,883,778],{"class":661},[651,885,886],{"class":665},"]",[651,888,762],{"class":661},[651,890,892],{"class":653,"line":891},13,[651,893,894],{"class":661},"  },\n",[651,896,898,901,903,905,908,910,913],{"class":653,"line":897},14,[651,899,900],{"class":752},"  logs",[651,902,756],{"class":661},[651,904,662],{"class":661},[651,906,907],{"class":752}," limit",[651,909,756],{"class":661},[651,911,912],{"class":820}," 100",[651,914,826],{"class":661},[651,916,918,921],{"class":653,"line":917},15,[651,919,920],{"class":661},"}",[651,922,923],{"class":665},")\n",[642,925,928],{"className":644,"code":926,"filename":927,"language":646,"meta":647,"style":647},"import { defineEvlog } from 'evlog'\n\nexport default defineEvlog({\n  sampling: { rates: { info: 10, debug: 0 } },\n  redact: { paths: ['user.password', 'card.number'] },\n  map: { rules: { 'error-catalog': 'off', 'audit-coverage': 'off' }, minScore: 70 },\n})\n","evlog.preset.ts",[623,929,930,948,952,964,1000,1038,1098],{"__ignoreMap":647},[651,931,932,934,936,938,940,942,944,946],{"class":653,"line":654},[651,933,658],{"class":657},[651,935,662],{"class":661},[651,937,666],{"class":665},[651,939,669],{"class":661},[651,941,672],{"class":657},[651,943,675],{"class":661},[651,945,679],{"class":678},[651,947,682],{"class":661},[651,949,950],{"class":653,"line":685},[651,951,728],{"emptyLinePlaceholder":727},[651,953,954,956,958,960,962],{"class":653,"line":706},[651,955,734],{"class":657},[651,957,737],{"class":657},[651,959,666],{"class":740},[651,961,743],{"class":665},[651,963,746],{"class":661},[651,965,966,968,970,972,974,976,978,980,982,985,988,991,993,996,998],{"class":653,"line":724},[651,967,801],{"class":752},[651,969,756],{"class":661},[651,971,662],{"class":661},[651,973,808],{"class":752},[651,975,756],{"class":661},[651,977,662],{"class":661},[651,979,815],{"class":752},[651,981,756],{"class":661},[651,983,984],{"class":820}," 10",[651,986,987],{"class":661},",",[651,989,990],{"class":752}," debug",[651,992,756],{"class":661},[651,994,995],{"class":820}," 0",[651,997,669],{"class":661},[651,999,826],{"class":661},[651,1001,1002,1005,1007,1009,1012,1014,1016,1018,1021,1023,1025,1027,1030,1032,1035],{"class":653,"line":731},[651,1003,1004],{"class":752},"  redact",[651,1006,756],{"class":661},[651,1008,662],{"class":661},[651,1010,1011],{"class":752}," paths",[651,1013,756],{"class":661},[651,1015,876],{"class":665},[651,1017,778],{"class":661},[651,1019,1020],{"class":678},"user.password",[651,1022,778],{"class":661},[651,1024,987],{"class":661},[651,1026,675],{"class":661},[651,1028,1029],{"class":678},"card.number",[651,1031,778],{"class":661},[651,1033,1034],{"class":665},"] ",[651,1036,1037],{"class":661},"},\n",[651,1039,1040,1042,1044,1046,1049,1051,1053,1055,1058,1060,1062,1064,1067,1069,1071,1073,1075,1077,1079,1081,1083,1085,1088,1091,1093,1096],{"class":653,"line":749},[651,1041,832],{"class":752},[651,1043,756],{"class":661},[651,1045,662],{"class":661},[651,1047,1048],{"class":752}," rules",[651,1050,756],{"class":661},[651,1052,662],{"class":661},[651,1054,675],{"class":661},[651,1056,1057],{"class":752},"error-catalog",[651,1059,778],{"class":661},[651,1061,756],{"class":661},[651,1063,675],{"class":661},[651,1065,1066],{"class":678},"off",[651,1068,778],{"class":661},[651,1070,987],{"class":661},[651,1072,675],{"class":661},[651,1074,852],{"class":752},[651,1076,778],{"class":661},[651,1078,756],{"class":661},[651,1080,675],{"class":661},[651,1082,1066],{"class":678},[651,1084,778],{"class":661},[651,1086,1087],{"class":661}," },",[651,1089,1090],{"class":752}," minScore",[651,1092,756],{"class":661},[651,1094,1095],{"class":820}," 70",[651,1097,826],{"class":661},[651,1099,1100,1102],{"class":653,"line":765},[651,1101,920],{"class":661},[651,1103,923],{"class":665},[619,1105,1106,1109],{},[623,1107,1108],{},"evlog config"," prints the merged result grouped by what each setting does, with the line it is written on, and fills in what evlog uses where the file says nothing:",[642,1111,1116],{"className":1112,"code":1113,"filename":1114,"language":1115,"meta":647,"style":647},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","evlog config\n","Terminal","bash",[623,1117,1118],{"__ignoreMap":647},[651,1119,1120,1123],{"class":653,"line":654},[651,1121,679],{"class":1122},"sBMFI",[651,1124,1125],{"class":678}," config\n",[642,1127,1133],{"className":1128,"code":1130,"filename":1131,"language":1132,"meta":647},[1129],"language-text","evlog.config.ts · extends .\u002Fevlog.preset → evlog.preset.ts\n\nService\n  service      checkout       evlog.config.ts:7\n  environment  from NODE_ENV  default\n\nSampling\n  trace  0%      default\n  debug  0%      evlog.preset.ts:4\n  info   25%     evlog.config.ts:9\n  warn   100%    default\n  error  100%    default\n  fatal  always  default\n\nRedaction\n  redact    on                                                 evlog.preset.ts:5\n  builtins  creditCard, email, ipv4, phone, jwt, bearer, iban  default\n  paths     user.password                                      evlog.preset.ts:5\n            card.number                                        evlog.preset.ts:5\n\nPipeline\n  drain  createAxiomDrain()  evlog.config.ts:8\n\nCLI · read by evlog map and evlog logs\n  map.rules.error-catalog   'off'                   evlog.preset.ts:6\n  map.rules.audit-coverage  'on'                    evlog.config.ts:11\n  map.minScore              70                      evlog.preset.ts:6\n  map.ignore                ['src\u002Froutes\u002F_dev\u002F**']  evlog.config.ts:12\n  logs.limit                100                     evlog.config.ts:14\n","Output","text",[623,1134,1130],{"__ignoreMap":647},[619,1136,1137,1138,1141,1142,1145],{},"Each redaction path keeps the line of the file that adds it, so a path the preset redacts never looks like the app's own. With ",[623,1139,1140],{},"routes",", the Service section becomes Services and lists each route's service in the order evlog matches them, the first match winning. A rate that changes nothing gets a warning under its row, such as a ",[623,1143,1144],{},"fatal"," rate, since fatal events are always kept.",[619,1147,1148,1149,1152,1153,1156,1157,1160,1161,1164,1165,1168,1169,1172,1173,1160,1176,1179,1180,1183,1184,1187],{},"A value the file computes, like ",[623,1150,1151],{},"createAxiomDrain()",", is shown as the code that produces it. ",[623,1154,1155],{},"--json"," returns the settings written in the files as ",[623,1158,1159],{},"cli"," and ",[623,1162,1163],{},"app"," lists of ",[623,1166,1167],{},"{ path, value, source }",", one entry per item of ",[623,1170,1171],{},"redact.paths",", ",[623,1174,1175],{},"redact.patterns",[623,1177,1178],{},"sampling.keep",", with a computed value written as ",[623,1181,1182],{},"{ \"runtime\": \"createAxiomDrain()\" }"," and a regular expression as ",[623,1185,1186],{},"{ \"regexp\": \"\u002Facct_\\\\w+\u002Fg\" }",".",[1189,1190,1192],"h2",{"id":1191},"where-the-cli-finds-the-file","Where the CLI finds the file",[619,1194,1195,1196,1172,1198,1172,1201,1160,1204,1207,1208,1210],{},"The CLI looks for ",[623,1197,633],{},[623,1199,1200],{},"evlog.config.mts",[623,1202,1203],{},"evlog.config.js",[623,1205,1206],{},"evlog.config.mjs",", in that order, starting in the package it runs on and walking up to the workspace root. The first file found applies on its own. Configs do not cascade, so an app with its own ",[623,1209,633],{}," ignores the one at the root unless it extends it.",[619,1212,1213,1214,1172,1217,1160,1220,1223],{},"Paths in ",[623,1215,1216],{},"map.ignore",[623,1218,1219],{},"map.baseline",[623,1221,1222],{},"logs.dir"," are relative to the package being mapped or read, not to the config file. One config at the root of a monorepo therefore fits every app in it.",[1189,1225,1227],{"id":1226},"gate-the-map-from-the-config","Gate the map from the config",[619,1229,1230,1232,1233,1235],{},[623,1231,625],{}," reads the ",[623,1234,109],{}," section, and a flag passed on the command line wins over the same setting.",[1237,1238,1239,1258],"table",{},[1240,1241,1242],"thead",{},[1243,1244,1245,1249,1252,1255],"tr",{},[1246,1247,1248],"th",{},"Setting",[1246,1250,1251],{},"Accepts",[1246,1253,1254],{},"Flag",[1246,1256,1257],{},"What it does",[1259,1260,1261,1280,1294,1312],"tbody",{},[1243,1262,1263,1269,1274,1277],{},[1264,1265,1266],"td",{},[623,1267,1268],{},"map.rules",[1264,1270,1271],{},[623,1272,1273],{},"{ [id]: 'on' | 'off' }",[1264,1275,1276],{},"none",[1264,1278,1279],{},"Turns a check off for every entry point, or back on when the preset turned it off",[1243,1281,1282,1286,1289,1291],{},[1264,1283,1284],{},[623,1285,1216],{},[1264,1287,1288],{},"list of globs",[1264,1290,1276],{},[1264,1292,1293],{},"Leaves the entry points whose file matches out of the map",[1243,1295,1296,1301,1304,1309],{},[1264,1297,1298],{},[623,1299,1300],{},"map.minScore",[1264,1302,1303],{},"whole number from 0 to 100",[1264,1305,1306],{},[623,1307,1308],{},"--min-score",[1264,1310,1311],{},"Exits 1 when the global score is below it",[1243,1313,1314,1318,1327,1332],{},[1264,1315,1316],{},[623,1317,1219],{},[1264,1319,1320,1323,1324],{},[623,1321,1322],{},"true",", a path, or ",[623,1325,1326],{},"git:\u003Cref>",[1264,1328,1329],{},[623,1330,1331],{},"--baseline",[1264,1333,1334,1335,1337,1338],{},"Exits 1 on a regression against the committed map, ",[623,1336,1322],{}," meaning ",[623,1339,1340],{},"evlog.map.json",[619,1342,1343,1344,1347,1348,1160,1351,1354,1355,1357],{},"The ids are the ones on ",[1345,1346,114],"a",{"href":115},". Every check can be turned off except ",[623,1349,1350],{},"wide-event",[623,1352,1353],{},"context",", because the map sorts entry points into instrumented, partial and dark by them. Leave those entry points out with ",[623,1356,1216],{}," instead.",[619,1359,1360,1361,1364,1365,1368,1369,1371],{},"A check turned off in the config becomes ",[623,1362,1363],{},"n\u002Fa"," on every entry point, with ",[623,1366,1367],{},"turned off in evlog.config"," as its message in ",[623,1370,1155],{},". The report says what the config changed above the score, and names the setting the gate came from:",[642,1373,1376],{"className":1374,"code":1375,"filename":1131,"language":1132,"meta":647},[1129],"evlog.config.ts: error-catalog off, 1 entry point ignored\n█▀█ ▀▀█   score \u002F100              checkout · Hono\n█▀█  ▀█   ▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▰▱▱▱    2 entry points scanned\n▀▀▀ ▀▀▀   good                    ▆█\n\n GATE  score 83 meets map.minScore 70 — exit code 0\n",[623,1377,1375],{"__ignoreMap":647},[619,1379,1380,1383,1384,1387,1388,1392],{},[623,1381,1382],{},"evlog map --min-score 95"," on the same project gates on 95 and says ",[623,1385,1386],{},"--min-score 95",". To turn a check off for one handler rather than the whole project, keep using a ",[1345,1389,1391],{"href":1390},"\u002Fcli\u002Frules#disabling-a-check","disable comment"," next to the code.",[1189,1394,1396],{"id":1395},"read-logs-from-another-directory","Read logs from another directory",[619,1398,1399,1232,1402,1404],{},[623,1400,1401],{},"evlog logs",[623,1403,99],{}," section, and its flags win the same way.",[1237,1406,1407,1419],{},[1240,1408,1409],{},[1243,1410,1411,1413,1415,1417],{},[1246,1412,1248],{},[1246,1414,1251],{},[1246,1416,1254],{},[1246,1418,1257],{},[1259,1420,1421,1441],{},[1243,1422,1423,1427,1430,1435],{},[1264,1424,1425],{},[623,1426,1222],{},[1264,1428,1429],{},"a path",[1264,1431,1432],{},[623,1433,1434],{},"--dir",[1264,1436,1437,1438],{},"Reads this directory instead of ",[623,1439,1440],{},".evlog\u002Flogs",[1243,1442,1443,1448,1451,1456],{},[1264,1444,1445],{},[623,1446,1447],{},"logs.limit",[1264,1449,1450],{},"whole number of 1 or more",[1264,1452,1453],{},[623,1454,1455],{},"--limit",[1264,1457,1458],{},"Shows at most this many events",[619,1460,1461,1172,1464,1467,1468,1470,1471,1473],{},[623,1462,1463],{},"--format",[623,1465,1466],{},"--verbose",", and ",[623,1469,1455],{}," on ",[623,1472,625],{}," stay flags only. They describe one run, not the project.",[1189,1475,1477],{"id":1476},"write-values-the-cli-can-read","Write values the CLI can read",[619,1479,1480,1481,1483,1484,1160,1486,1488,1489,1492],{},"The CLI parses ",[623,1482,633],{}," and never runs it, so every value under ",[623,1485,109],{},[623,1487,99],{}," has to be a literal, a ",[623,1490,1491],{},"const",", or a value imported from a local file. A call, an environment variable, or a value imported from a package stops the command:",[642,1494,1497],{"className":1495,"code":1496,"filename":1131,"language":1132,"meta":647},[1129],"logs.limit in evlog.config.ts:14 is computed at runtime\n→ Write the value inline, as a const, or import it from a local file\n",[623,1498,1496],{"__ignoreMap":647},[619,1500,1501,1502,1505,1506,1509],{},"The rest of the file is for the app and can compute anything: a drain, an ",[623,1503,1504],{},"enrich"," function, a sampling rate read from ",[623,1507,1508],{},"process.env",". The CLI lists those values without evaluating them.",[1189,1511,1513,1514],{"id":1512},"share-settings-with-extends","Share settings with ",[623,1515,1516],{},"extends",[619,1518,1519,1521,1522,1525],{},[623,1520,1516],{}," takes another config, imported from a local file or from a package. A preset published to npm is an ordinary module whose default export is ",[623,1523,1524],{},"defineEvlog({ ... })",", so a team installs it and extends it:",[642,1527,1529],{"className":644,"code":1528,"filename":633,"language":646,"meta":647,"style":647},"import { defineEvlog } from 'evlog'\nimport preset from '@acme\u002Fevlog-preset'\n\nexport default defineEvlog({\n  extends: preset,\n  service: 'checkout',\n})\n",[623,1530,1531,1549,1564,1568,1580,1590,1604],{"__ignoreMap":647},[651,1532,1533,1535,1537,1539,1541,1543,1545,1547],{"class":653,"line":654},[651,1534,658],{"class":657},[651,1536,662],{"class":661},[651,1538,666],{"class":665},[651,1540,669],{"class":661},[651,1542,672],{"class":657},[651,1544,675],{"class":661},[651,1546,679],{"class":678},[651,1548,682],{"class":661},[651,1550,1551,1553,1555,1557,1559,1562],{"class":653,"line":685},[651,1552,658],{"class":657},[651,1554,711],{"class":665},[651,1556,714],{"class":657},[651,1558,675],{"class":661},[651,1560,1561],{"class":678},"@acme\u002Fevlog-preset",[651,1563,682],{"class":661},[651,1565,1566],{"class":653,"line":706},[651,1567,728],{"emptyLinePlaceholder":727},[651,1569,1570,1572,1574,1576,1578],{"class":653,"line":724},[651,1571,734],{"class":657},[651,1573,737],{"class":657},[651,1575,666],{"class":740},[651,1577,743],{"class":665},[651,1579,746],{"class":661},[651,1581,1582,1584,1586,1588],{"class":653,"line":731},[651,1583,753],{"class":752},[651,1585,756],{"class":661},[651,1587,759],{"class":665},[651,1589,762],{"class":661},[651,1591,1592,1594,1596,1598,1600,1602],{"class":653,"line":749},[651,1593,768],{"class":752},[651,1595,756],{"class":661},[651,1597,675],{"class":661},[651,1599,775],{"class":678},[651,1601,778],{"class":661},[651,1603,762],{"class":661},[651,1605,1606,1608],{"class":653,"line":765},[651,1607,920],{"class":661},[651,1609,923],{"class":665},[619,1611,1612,1613,1616,1617,1160,1619,1621],{},"The CLI follows the package's ",[623,1614,1615],{},"exports"," to the file it ships and reads it the same way, so the preset's ",[623,1618,109],{},[623,1620,99],{}," have to be literals too.",[619,1623,1624],{},"Settings merge by kind:",[1237,1626,1627,1637],{},[1240,1628,1629],{},[1243,1630,1631,1634],{},[1246,1632,1633],{},"In the config",[1246,1635,1636],{},"Result",[1259,1638,1639,1658,1676,1689,1705,1719,1729],{},[1243,1640,1641,1655],{},[1264,1642,1643,1644,1172,1647,1172,1650,1172,1652],{},"A scalar or a function: ",[623,1645,1646],{},"service",[623,1648,1649],{},"drain",[623,1651,1504],{},[623,1653,1654],{},"keep",[1264,1656,1657],{},"The config's value replaces the preset's",[1243,1659,1660,1673],{},[1264,1661,1662,1663,1172,1666,1172,1668,1172,1671],{},"An object: ",[623,1664,1665],{},"sampling.rates",[623,1667,1140],{},[623,1669,1670],{},"env",[623,1672,1268],{},[1264,1674,1675],{},"Merged key by key, the config winning on each key",[1243,1677,1678,1686],{},[1264,1679,1680,1172,1682,1172,1684],{},[623,1681,1171],{},[623,1683,1175],{},[623,1685,1178],{},[1264,1687,1688],{},"The preset's entries, then the config's",[1243,1690,1691,1702],{},[1264,1692,1693,1694,1172,1696,1172,1699],{},"Any other list: ",[623,1695,1216],{},[623,1697,1698],{},"include",[623,1700,1701],{},"exclude",[1264,1703,1704],{},"The config's list replaces the preset's",[1243,1706,1707,1712],{},[1264,1708,1709],{},[623,1710,1711],{},"plugins",[1264,1713,1714,1715,1718],{},"Merged by ",[623,1716,1717],{},"name",", a config plugin replacing the preset plugin of the same name",[1243,1720,1721,1726],{},[1264,1722,1723],{},[623,1724,1725],{},"redact: false",[1264,1727,1728],{},"Redaction off",[1243,1730,1731,1736],{},[1264,1732,1733],{},[623,1734,1735],{},"redact: true",[1264,1737,1738],{},"The preset's redact settings, unchanged",[619,1740,1741],{},"Redaction paths and kept events add up rather than being replaced, so an app that lists its own paths cannot drop the ones the preset redacts.",[619,1743,1744,1745,1747],{},"A config extends one level only. When ",[623,1746,927],{}," itself extends a config, extending it fails and names both files:",[642,1749,1752],{"className":1750,"code":1751,"filename":1131,"language":1132,"meta":647},[1129],".\u002Fevlog.preset extends another config, so evlog.config.ts:6 cannot extend it\n→ Extend the config it extends directly, or copy the settings you need into one of the two files\n",[623,1753,1751],{"__ignoreMap":647},[619,1755,1756,1757,1759],{},"Every setting is then at most one file away from where it applies, and ",[623,1758,1108],{}," names that file.",[619,1761,1762,1764],{},[623,1763,1516],{}," takes the config itself, the value the app merges at runtime, so a path string is refused rather than resolved:",[642,1766,1769],{"className":1767,"code":1768,"filename":1131,"language":1132,"meta":647},[1129],"extends in evlog.config.ts:4 is the path '.\u002Fevlog.preset', not a config\n→ Import the config from that path as base, then set extends: base\n",[623,1770,1768],{"__ignoreMap":647},[1189,1772,1774],{"id":1773},"use-the-config-in-your-app","Use the config in your app",[619,1776,1777,1778,1780,1781,1784,1785,1787,1788,1791,1792,1160,1794,1796],{},"Nothing loads ",[623,1779,633],{}," at runtime: the app imports it. ",[623,1782,1783],{},"toLoggerConfig"," keeps the options ",[623,1786,629],{}," takes, ",[623,1789,1790],{},"toMiddlewareOptions"," keeps the ones a framework middleware takes, and both leave ",[623,1793,109],{},[623,1795,99],{}," out:",[642,1798,1801],{"className":644,"code":1799,"filename":1800,"language":646,"meta":647,"style":647},"import { Hono } from 'hono'\nimport { initLogger, toLoggerConfig, toMiddlewareOptions } from 'evlog'\nimport { evlog, type EvlogVariables } from 'evlog\u002Fhono'\nimport config from '..\u002Fevlog.config'\n\ninitLogger(toLoggerConfig(config))\n\nconst app = new Hono\u003CEvlogVariables>()\napp.use(evlog(toMiddlewareOptions(config)))\n","src\u002Findex.ts",[623,1802,1803,1823,1852,1880,1896,1900,1911,1915,1943],{"__ignoreMap":647},[651,1804,1805,1807,1809,1812,1814,1816,1818,1821],{"class":653,"line":654},[651,1806,658],{"class":657},[651,1808,662],{"class":661},[651,1810,1811],{"class":665}," Hono",[651,1813,669],{"class":661},[651,1815,672],{"class":657},[651,1817,675],{"class":661},[651,1819,1820],{"class":678},"hono",[651,1822,682],{"class":661},[651,1824,1825,1827,1829,1832,1834,1837,1839,1842,1844,1846,1848,1850],{"class":653,"line":685},[651,1826,658],{"class":657},[651,1828,662],{"class":661},[651,1830,1831],{"class":665}," initLogger",[651,1833,987],{"class":661},[651,1835,1836],{"class":665}," toLoggerConfig",[651,1838,987],{"class":661},[651,1840,1841],{"class":665}," toMiddlewareOptions",[651,1843,669],{"class":661},[651,1845,672],{"class":657},[651,1847,675],{"class":661},[651,1849,679],{"class":678},[651,1851,682],{"class":661},[651,1853,1854,1856,1858,1861,1863,1866,1869,1871,1873,1875,1878],{"class":653,"line":706},[651,1855,658],{"class":657},[651,1857,662],{"class":661},[651,1859,1860],{"class":665}," evlog",[651,1862,987],{"class":661},[651,1864,1865],{"class":657}," type",[651,1867,1868],{"class":665}," EvlogVariables",[651,1870,669],{"class":661},[651,1872,672],{"class":657},[651,1874,675],{"class":661},[651,1876,1877],{"class":678},"evlog\u002Fhono",[651,1879,682],{"class":661},[651,1881,1882,1884,1887,1889,1891,1894],{"class":653,"line":724},[651,1883,658],{"class":657},[651,1885,1886],{"class":665}," config ",[651,1888,714],{"class":657},[651,1890,675],{"class":661},[651,1892,1893],{"class":678},"..\u002Fevlog.config",[651,1895,682],{"class":661},[651,1897,1898],{"class":653,"line":731},[651,1899,728],{"emptyLinePlaceholder":727},[651,1901,1902,1904,1906,1908],{"class":653,"line":749},[651,1903,629],{"class":740},[651,1905,743],{"class":665},[651,1907,1783],{"class":740},[651,1909,1910],{"class":665},"(config))\n",[651,1912,1913],{"class":653,"line":765},[651,1914,728],{"emptyLinePlaceholder":727},[651,1916,1917,1920,1923,1926,1929,1931,1934,1937,1940],{"class":653,"line":783},[651,1918,1491],{"class":1919},"spNyl",[651,1921,1922],{"class":665}," app ",[651,1924,1925],{"class":661},"=",[651,1927,1928],{"class":661}," new",[651,1930,1811],{"class":740},[651,1932,1933],{"class":661},"\u003C",[651,1935,1936],{"class":1122},"EvlogVariables",[651,1938,1939],{"class":661},">",[651,1941,1942],{"class":665},"()\n",[651,1944,1945,1947,1949,1952,1954,1956,1958,1960],{"class":653,"line":798},[651,1946,1163],{"class":665},[651,1948,1187],{"class":661},[651,1950,1951],{"class":740},"use",[651,1953,743],{"class":665},[651,1955,679],{"class":740},[651,1957,743],{"class":665},[651,1959,1790],{"class":740},[651,1961,1962],{"class":665},"(config)))\n",[619,1964,1965,1966,1968,1969,1972,1973,1976,1977,1160,1979,1981],{},"The Nuxt and Nitro modules do not read ",[623,1967,633],{},". Their options stay in ",[623,1970,1971],{},"nuxt.config.ts"," or ",[623,1974,1975],{},"nitro.config.ts",", and the file there carries the ",[623,1978,109],{},[623,1980,99],{}," settings the CLI applies.",[1189,1983,1985],{"id":1984},"when-the-config-cannot-be-read","When the config cannot be read",[619,1987,1988,1160,1990,1992,1993,1995,1996,2001,2002,2004],{},[623,1989,625],{},[623,1991,1108],{}," exit 1 on a config they cannot read, and ",[623,1994,1401],{}," exits 2. ",[1345,1997,1998],{"href":130},[623,1999,2000],{},"evlog doctor"," reports the same error as a failing ",[623,2003,104],{}," check. Each error carries a code from the CLI's catalog:",[1237,2006,2007,2017],{},[1240,2008,2009],{},[1243,2010,2011,2014],{},[1246,2012,2013],{},"Code",[1246,2015,2016],{},"Raised when",[1259,2018,2019,2029,2041,2059,2073,2086,2096],{},[1243,2020,2021,2026],{},[1264,2022,2023],{},[623,2024,2025],{},"cli.CONFIG_PARSE_FAILED",[1264,2027,2028],{},"The file has a syntax error",[1243,2030,2031,2036],{},[1264,2032,2033],{},[623,2034,2035],{},"cli.CONFIG_NO_EXPORT",[1264,2037,2038,2039],{},"There is no default export of an object or ",[623,2040,1524],{},[1243,2042,2043,2048],{},[1264,2044,2045],{},[623,2046,2047],{},"cli.CONFIG_NOT_STATIC",[1264,2049,2050,2051,2053,2054,1972,2056,2058],{},"The default export, ",[623,2052,1516],{},", or a ",[623,2055,109],{},[623,2057,99],{}," value is computed at runtime",[1243,2060,2061,2066],{},[1264,2062,2063],{},[623,2064,2065],{},"cli.CONFIG_INVALID",[1264,2067,2068,2069,1972,2071],{},"A setting is misspelt, has the wrong type, or turns off ",[623,2070,1350],{},[623,2072,1353],{},[1243,2074,2075,2080],{},[1264,2076,2077],{},[623,2078,2079],{},"cli.CONFIG_EXTENDS_NOT_FOUND",[1264,2081,2082,2083,2085],{},"The ",[623,2084,1516],{}," import does not lead to a file",[1243,2087,2088,2093],{},[1264,2089,2090],{},[623,2091,2092],{},"cli.CONFIG_EXTENDS_DEPTH",[1264,2094,2095],{},"The extended config extends another one",[1243,2097,2098,2103],{},[1264,2099,2100],{},[623,2101,2102],{},"cli.CONFIG_EXTENDS_STRING",[1264,2104,2105,2107],{},[623,2106,1516],{}," is a path string instead of an imported config",[619,2109,2110],{},"A misspelt key is an error rather than a setting quietly ignored:",[642,2112,2115],{"className":2113,"code":2114,"filename":1131,"language":1132,"meta":647},[1129],"logs.limt in evlog.config.ts:14 is not a setting; expected dir, limit\n→ Use a setting and a value the config reference lists\n",[623,2116,2114],{"__ignoreMap":647},[1189,2118,2120],{"id":2119},"next","Next",[2122,2123,2124,2133],"ul",{},[2125,2126,2127,2129,2130,2132],"li",{},[1345,2128,114],{"href":115},": the ids ",[623,2131,1268],{}," takes, and what each check expects",[2125,2134,2135,2137],{},[1345,2136,124],{"href":125},": gate a pull request on the score",[2139,2140,2141],"style",{},"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 .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}",{"title":647,"searchDepth":685,"depth":685,"links":2143},[2144,2145,2146,2147,2148,2150,2151,2152],{"id":1191,"depth":685,"text":1192},{"id":1226,"depth":685,"text":1227},{"id":1395,"depth":685,"text":1396},{"id":1476,"depth":685,"text":1477},{"id":1512,"depth":685,"text":2149},"Share settings with extends",{"id":1773,"depth":685,"text":1774},{"id":1984,"depth":685,"text":1985},{"id":2119,"depth":685,"text":2120},"One evlog.config.ts sets what evlog map checks, where evlog logs reads, and the sampling, redaction and drains your app imports.","md",[2156,2160],{"label":2157,"icon":117,"to":115,"color":2158,"variant":2159},"Map rules","neutral","subtle",{"label":66,"icon":69,"to":67,"color":2158,"variant":2159},{},{"title":104,"icon":107},{"title":614,"description":2153},"ryAZOFcPUEPzAO0IgQ8wwccZXVmf6LAaKHW2LMoozLA",[2166,2168],{"title":99,"path":100,"stem":101,"description":2167,"icon":102,"children":-1},"Read the wide events your app wrote to .evlog\u002Flogs from the terminal — the latest requests, the failures, the slowest, or one request in full.",{"title":109,"path":110,"stem":111,"description":2169,"icon":112,"children":-1},"Scan supported entry points for evlog logging patterns, inspect the static observability score, and prioritize fixes without running your handlers.",1791657893923]