[{"data":1,"prerenderedAt":3191},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-quick-start":421,"-getting-started-quick-start-surround":3186},[4,35,159,201,289,318,405],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Getting Started","\u002Fgetting-started","1.getting-started",[9,14,19,24,29],{"title":10,"path":11,"stem":12,"icon":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-info",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Quick Start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start","i-lucide-zap",{"title":25,"path":26,"stem":27,"icon":28},"Agent Skills","\u002Fgetting-started\u002Fagent-skills","1.getting-started\u002F4.agent-skills","i-lucide-sparkles",{"title":30,"path":31,"stem":32,"icon":33},"vs Other Loggers","\u002Fgetting-started\u002Fvs-other-loggers","1.getting-started\u002F5.vs-other-loggers","i-lucide-scale",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Logging","\u002Flogging","2.logging",[40,45,50,55,60,65,70,99,127],{"title":41,"path":42,"stem":43,"icon":44},"Overview","\u002Flogging\u002Foverview","2.logging\u002F0.overview","i-lucide-list",{"title":46,"path":47,"stem":48,"icon":49},"Simple Logging","\u002Flogging\u002Fsimple-logging","2.logging\u002F1.simple-logging","i-lucide-terminal",{"title":51,"path":52,"stem":53,"icon":54},"Wide Events","\u002Flogging\u002Fwide-events","2.logging\u002F2.wide-events","i-lucide-layers",{"title":56,"path":57,"stem":58,"icon":59},"Structured Errors","\u002Flogging\u002Fstructured-errors","2.logging\u002F3.structured-errors","i-lucide-shield-alert",{"title":61,"path":62,"stem":63,"icon":64},"Catalogs","\u002Flogging\u002Fcatalogs","2.logging\u002F4.catalogs","i-lucide-book-open",{"title":66,"path":67,"stem":68,"icon":69},"Client Logging","\u002Flogging\u002Fclient-logging","2.logging\u002F5.client-logging","i-lucide-monitor",{"title":71,"icon":72,"path":73,"stem":74,"children":75,"page":34},"AI SDK","i-simple-icons-vercel","\u002Flogging\u002Fai-sdk","2.logging\u002F6.ai-sdk",[76,79,84,89,94],{"title":41,"path":77,"stem":78,"icon":44},"\u002Flogging\u002Fai-sdk\u002Foverview","2.logging\u002F6.ai-sdk\u002F01.overview",{"title":80,"path":81,"stem":82,"icon":83},"Usage","\u002Flogging\u002Fai-sdk\u002Fusage","2.logging\u002F6.ai-sdk\u002F02.usage","i-lucide-code",{"title":85,"path":86,"stem":87,"icon":88},"Options","\u002Flogging\u002Fai-sdk\u002Foptions","2.logging\u002F6.ai-sdk\u002F03.options","i-lucide-sliders",{"title":90,"path":91,"stem":92,"icon":93},"Metadata","\u002Flogging\u002Fai-sdk\u002Fmetadata","2.logging\u002F6.ai-sdk\u002F04.metadata","i-lucide-database",{"title":95,"path":96,"stem":97,"icon":98},"Telemetry","\u002Flogging\u002Fai-sdk\u002Ftelemetry","2.logging\u002F6.ai-sdk\u002F05.telemetry","i-lucide-activity",{"title":100,"icon":101,"path":102,"stem":103,"children":104,"page":34},"Better Auth","i-simple-icons-betterauth","\u002Flogging\u002Fbetter-auth","2.logging\u002F7.better-auth",[105,108,113,118,122],{"title":41,"path":106,"stem":107,"icon":44},"\u002Flogging\u002Fbetter-auth\u002Foverview","2.logging\u002F7.better-auth\u002F01.overview",{"title":109,"path":110,"stem":111,"icon":112},"Identify User","\u002Flogging\u002Fbetter-auth\u002Fidentify-user","2.logging\u002F7.better-auth\u002F02.identify-user","i-lucide-user-check",{"title":114,"path":115,"stem":116,"icon":117},"Middleware","\u002Flogging\u002Fbetter-auth\u002Fmiddleware","2.logging\u002F7.better-auth\u002F03.middleware","i-lucide-shield",{"title":119,"path":120,"stem":121,"icon":69},"Client Sync","\u002Flogging\u002Fbetter-auth\u002Fclient-sync","2.logging\u002F7.better-auth\u002F04.client-sync",{"title":123,"path":124,"stem":125,"icon":126},"Performance","\u002Flogging\u002Fbetter-auth\u002Fperformance","2.logging\u002F7.better-auth\u002F05.performance","i-lucide-gauge",{"title":128,"icon":129,"path":130,"stem":131,"children":132,"page":34},"Audit Logs","i-lucide-shield-check","\u002Flogging\u002Faudit","2.logging\u002F8.audit",[133,136,141,146,151,155],{"title":41,"path":134,"stem":135,"icon":44},"\u002Flogging\u002Faudit\u002Foverview","2.logging\u002F8.audit\u002F01.overview",{"title":137,"path":138,"stem":139,"icon":140},"Schema","\u002Flogging\u002Faudit\u002Fschema","2.logging\u002F8.audit\u002F02.schema","i-lucide-file-text",{"title":142,"path":143,"stem":144,"icon":145},"Recording","\u002Flogging\u002Faudit\u002Frecording","2.logging\u002F8.audit\u002F03.recording","i-lucide-pen-line",{"title":147,"path":148,"stem":149,"icon":150},"Drains","\u002Flogging\u002Faudit\u002Fpipeline","2.logging\u002F8.audit\u002F04.pipeline","i-lucide-link",{"title":152,"path":153,"stem":154,"icon":129},"Compliance","\u002Flogging\u002Faudit\u002Fcompliance","2.logging\u002F8.audit\u002F05.compliance",{"title":156,"path":157,"stem":158,"icon":64},"Recipes","\u002Flogging\u002Faudit\u002Frecipes","2.logging\u002F8.audit\u002F06.recipes",{"title":160,"path":161,"stem":162,"children":163,"page":34},"Core Concepts","\u002Fcore-concepts","3.core-concepts",[164,169,174,179,184,188,191,196],{"title":165,"path":166,"stem":167,"icon":168},"Lifecycle","\u002Fcore-concepts\u002Flifecycle","3.core-concepts\u002F0.lifecycle","i-lucide-arrow-right-left",{"title":170,"path":171,"stem":172,"icon":173},"Configuration","\u002Fcore-concepts\u002Fconfiguration","3.core-concepts\u002F1.configuration","i-lucide-settings",{"title":175,"path":176,"stem":177,"icon":178},"Sampling","\u002Fcore-concepts\u002Fsampling","3.core-concepts\u002F2.sampling","i-lucide-filter",{"title":180,"path":181,"stem":182,"icon":183},"Typed Fields","\u002Fcore-concepts\u002Ftyped-fields","3.core-concepts\u002F3.typed-fields","i-simple-icons-typescript",{"title":185,"path":186,"stem":187,"icon":129},"Best Practices","\u002Fcore-concepts\u002Fbest-practices","3.core-concepts\u002F4.best-practices",{"title":123,"path":189,"stem":190,"icon":126},"\u002Fcore-concepts\u002Fperformance","3.core-concepts\u002F5.performance",{"title":192,"path":193,"stem":194,"icon":195},"Vite Plugin","\u002Fcore-concepts\u002Fvite-plugin","3.core-concepts\u002F6.vite-plugin","i-custom-vite",{"title":197,"path":198,"stem":199,"icon":200},"Auto-Redaction","\u002Fcore-concepts\u002Fredaction","3.core-concepts\u002F7.redaction","i-lucide-eye-off",{"title":202,"path":203,"stem":204,"children":205,"page":34},"Frameworks","\u002Fframeworks","4.frameworks",[206,210,215,220,225,230,235,240,245,250,255,260,265,270,274,279,284],{"title":41,"path":207,"stem":208,"icon":209},"\u002Fframeworks\u002Foverview","4.frameworks\u002F00.overview","i-lucide-layout-grid",{"title":211,"path":212,"stem":213,"icon":214},"Nuxt","\u002Fframeworks\u002Fnuxt","4.frameworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":216,"path":217,"stem":218,"icon":219},"Next.js","\u002Fframeworks\u002Fnextjs","4.frameworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":221,"path":222,"stem":223,"icon":224},"SvelteKit","\u002Fframeworks\u002Fsveltekit","4.frameworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":226,"path":227,"stem":228,"icon":229},"Nitro","\u002Fframeworks\u002Fnitro","4.frameworks\u002F04.nitro","i-custom-nitro",{"title":231,"path":232,"stem":233,"icon":234},"TanStack Start","\u002Fframeworks\u002Ftanstack-start","4.frameworks\u002F05.tanstack-start","i-custom-tanstack",{"title":236,"path":237,"stem":238,"icon":239},"NestJS","\u002Fframeworks\u002Fnestjs","4.frameworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":241,"path":242,"stem":243,"icon":244},"Express","\u002Fframeworks\u002Fexpress","4.frameworks\u002F07.express","i-simple-icons-express",{"title":246,"path":247,"stem":248,"icon":249},"Hono","\u002Fframeworks\u002Fhono","4.frameworks\u002F08.hono","i-simple-icons-hono",{"title":251,"path":252,"stem":253,"icon":254},"Fastify","\u002Fframeworks\u002Ffastify","4.frameworks\u002F09.fastify","i-simple-icons-fastify",{"title":256,"path":257,"stem":258,"icon":259},"Elysia","\u002Fframeworks\u002Felysia","4.frameworks\u002F10.elysia","i-custom-elysia",{"title":261,"path":262,"stem":263,"icon":264},"React Router","\u002Fframeworks\u002Freact-router","4.frameworks\u002F11.react-router","i-custom-reactrouter",{"title":266,"path":267,"stem":268,"icon":269},"Cloudflare Workers","\u002Fframeworks\u002Fcloudflare-workers","4.frameworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":271,"path":272,"stem":273,"icon":183},"Standalone","\u002Fframeworks\u002Fstandalone","4.frameworks\u002F13.standalone",{"title":275,"path":276,"stem":277,"icon":278},"Astro","\u002Fframeworks\u002Fastro","4.frameworks\u002F14.astro","i-simple-icons-astro",{"title":280,"path":281,"stem":282,"icon":283},"AWS Lambda","\u002Fframeworks\u002Faws-lambda","4.frameworks\u002F16.aws-lambda","i-custom-lambda",{"title":285,"path":286,"stem":287,"icon":288},"Custom Integration","\u002Fframeworks\u002Fcustom-integration","4.frameworks\u002F17.custom-integration","i-lucide-puzzle",{"title":290,"path":291,"stem":292,"children":293,"page":34},"Build on top","\u002Fbuild-on-top","5.build-on-top",[294,299,304,309,314],{"title":295,"path":296,"stem":297,"icon":298},"Identity headers","\u002Fbuild-on-top\u002Fidentity-headers","5.build-on-top\u002F1.identity-headers","i-lucide-fingerprint",{"title":300,"path":301,"stem":302,"icon":303},"Stream API","\u002Fbuild-on-top\u002Fstream-api","5.build-on-top\u002F2.stream-api","i-lucide-radio-tower",{"title":305,"path":306,"stem":307,"icon":308},"SSE bridge","\u002Fbuild-on-top\u002Fsse-bridge","5.build-on-top\u002F3.sse-bridge","i-lucide-wifi",{"title":310,"path":311,"stem":312,"icon":313},"FS reader","\u002Fbuild-on-top\u002Ffs-reader","5.build-on-top\u002F4.fs-reader","i-lucide-folder-search",{"title":156,"path":315,"stem":316,"icon":317},"\u002Fbuild-on-top\u002Frecipes","5.build-on-top\u002F4.recipes","i-lucide-chef-hat",{"title":319,"path":320,"stem":321,"children":322,"page":34},"Adapters","\u002Fadapters","6.adapters",[323,326,366,381],{"title":41,"path":324,"stem":325,"icon":44},"\u002Fadapters\u002Foverview","6.adapters\u002F01.overview",{"title":327,"path":328,"stem":329,"children":330,"page":34},"Cloud destinations","\u002Fadapters\u002Fcloud","6.adapters\u002F02.cloud",[331,336,341,346,351,356,361],{"title":332,"path":333,"stem":334,"icon":335},"Axiom","\u002Fadapters\u002Fcloud\u002Faxiom","6.adapters\u002F02.cloud\u002F01.axiom","i-custom-axiom",{"title":337,"path":338,"stem":339,"icon":340},"OTLP","\u002Fadapters\u002Fcloud\u002Fotlp","6.adapters\u002F02.cloud\u002F02.otlp","i-simple-icons-opentelemetry",{"title":342,"path":343,"stem":344,"icon":345},"PostHog","\u002Fadapters\u002Fcloud\u002Fposthog","6.adapters\u002F02.cloud\u002F03.posthog","i-simple-icons-posthog",{"title":347,"path":348,"stem":349,"icon":350},"Sentry","\u002Fadapters\u002Fcloud\u002Fsentry","6.adapters\u002F02.cloud\u002F04.sentry","i-simple-icons-sentry",{"title":352,"path":353,"stem":354,"icon":355},"Better Stack","\u002Fadapters\u002Fcloud\u002Fbetter-stack","6.adapters\u002F02.cloud\u002F05.better-stack","i-simple-icons-betterstack",{"title":357,"path":358,"stem":359,"icon":360},"Datadog","\u002Fadapters\u002Fcloud\u002Fdatadog","6.adapters\u002F02.cloud\u002F06.datadog","i-simple-icons-datadog",{"title":362,"path":363,"stem":364,"icon":365},"HyperDX","\u002Fadapters\u002Fcloud\u002Fhyperdx","6.adapters\u002F02.cloud\u002F07.hyperdx","i-custom-hyperdx",{"title":367,"path":368,"stem":369,"children":370,"page":34},"Self-hosted","\u002Fadapters\u002Fself-hosted","6.adapters\u002F03.self-hosted",[371,376],{"title":372,"path":373,"stem":374,"icon":375},"File System","\u002Fadapters\u002Fself-hosted\u002Ffs","6.adapters\u002F03.self-hosted\u002F01.fs","i-lucide-hard-drive",{"title":377,"path":378,"stem":379,"icon":380},"NuxtHub","\u002Fadapters\u002Fself-hosted\u002Fnuxthub","6.adapters\u002F03.self-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":382,"path":383,"stem":384,"children":385,"page":34},"Building blocks","\u002Fadapters\u002Fbuilding-blocks","6.adapters\u002F04.building-blocks",[386,391,396,400],{"title":387,"path":388,"stem":389,"icon":390},"Pipeline","\u002Fadapters\u002Fbuilding-blocks\u002Fpipeline","6.adapters\u002F04.building-blocks\u002F01.pipeline","i-lucide-workflow",{"title":392,"path":393,"stem":394,"icon":395},"HTTP","\u002Fadapters\u002Fbuilding-blocks\u002Fhttp","6.adapters\u002F04.building-blocks\u002F02.http","i-lucide-globe",{"title":397,"path":398,"stem":399,"icon":83},"Custom Adapters","\u002Fadapters\u002Fbuilding-blocks\u002Fcustom","6.adapters\u002F04.building-blocks\u002F03.custom",{"title":401,"path":402,"stem":403,"icon":404},"Toolkit","\u002Fadapters\u002Fbuilding-blocks\u002Ftoolkit","6.adapters\u002F04.building-blocks\u002F04.toolkit","i-lucide-blocks",{"title":406,"path":407,"stem":408,"children":409,"page":34},"Enrichers","\u002Fenrichers","7.enrichers",[410,413,417],{"title":41,"path":411,"stem":412,"icon":28},"\u002Fenrichers\u002Foverview","7.enrichers\u002F1.overview",{"title":414,"path":415,"stem":416,"icon":288},"Built-in","\u002Fenrichers\u002Fbuilt-in","7.enrichers\u002F2.built-in",{"title":418,"path":419,"stem":420,"icon":83},"Custom","\u002Fenrichers\u002Fcustom","7.enrichers\u002F3.custom",{"id":422,"title":20,"body":423,"description":3176,"extension":3177,"links":3178,"meta":3182,"navigation":3183,"path":21,"seo":3184,"stem":22,"__hash__":3185},"docs\u002F1.getting-started\u002F3.quick-start.md",{"type":424,"value":425,"toc":3162},"minimark",[426,430,455,499,504,507,720,723,744,752,756,766,1031,1051,1067,1140,1154,1158,1165,1494,1504,1509,1572,1576,1579,1584,1590,1780,1783,1830,1834,1839,1967,1980,1984,1990,2242,2246,2348,2352,2357,2719,2723,2729,3120,3126,3130,3158],[427,428,429],"p",{},"This guide covers the core APIs you'll use most often with evlog.",[431,432,434,435,439,440,444,445,444,448,444,451,454],"callout",{"color":433,"icon":28},"info","In Nuxt, evlog ",[436,437,438],"strong",{},"auto-imports"," all functions (",[441,442,443],"code",{},"useLogger",", ",[441,446,447],{},"log",[441,449,450],{},"createError",[441,452,453],{},"parseError","). No import statements needed.",[456,457,460,463,485],"prompt",{":actions":458,"description":459,"icon":23},"[\"copy\",\"cursor\",\"windsurf\"]","Get evlog running in 2 minutes",[427,461,462],{},"Get evlog running in my project in under 2 minutes.",[464,465,466,470,473,476,479,482],"ul",{},[467,468,469],"li",{},"Install evlog: pnpm add evlog",[467,471,472],{},"Detect my framework and wire up the matching integration",[467,474,475],{},"Set evlog.env.service to my app name",[467,477,478],{},"Add a single useLogger(event) call in a route handler with log.set({ ... })",[467,480,481],{},"Throw one createError({ message, status, why, fix }) for an invalid input case",[467,483,484],{},"Trigger the route locally and confirm a single wide event prints to the terminal",[427,486,487,488,494,495],{},"Docs: ",[489,490,491],"a",{"href":491,"rel":492},"https:\u002F\u002Fwww.evlog.dev\u002Fgetting-started\u002Fquick-start",[493],"nofollow","\nFrameworks: ",[489,496,497],{"href":497,"rel":498},"https:\u002F\u002Fwww.evlog.dev\u002Fframeworks\u002Foverview",[493],[500,501,503],"h2",{"id":502},"log-simple-logging","log (Simple Logging)",[427,505,506],{},"The simplest way to use evlog. Fire-and-forget structured logs, anywhere in your code:",[508,509,510,672],"code-group",{},[511,512,518],"pre",{"className":513,"code":514,"filename":515,"language":516,"meta":517,"style":517},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { log } from 'evlog'\n\nlog.info('auth', 'User logged in')\nlog.error({ action: 'payment', error: 'card_declined' })\nlog.warn('cache', 'Cache miss')\n","Server","typescript","",[441,519,520,553,560,595,642],{"__ignoreMap":517},[521,522,525,529,533,537,540,543,546,550],"span",{"class":523,"line":524},"line",1,[521,526,528],{"class":527},"s7zQu","import",[521,530,532],{"class":531},"sMK4o"," {",[521,534,536],{"class":535},"sTEyZ"," log",[521,538,539],{"class":531}," }",[521,541,542],{"class":527}," from",[521,544,545],{"class":531}," '",[521,547,549],{"class":548},"sfazB","evlog",[521,551,552],{"class":531},"'\n",[521,554,556],{"class":523,"line":555},2,[521,557,559],{"emptyLinePlaceholder":558},true,"\n",[521,561,563,565,568,571,574,577,580,582,585,587,590,592],{"class":523,"line":562},3,[521,564,447],{"class":535},[521,566,567],{"class":531},".",[521,569,433],{"class":570},"s2Zo4",[521,572,573],{"class":535},"(",[521,575,576],{"class":531},"'",[521,578,579],{"class":548},"auth",[521,581,576],{"class":531},[521,583,584],{"class":531},",",[521,586,545],{"class":531},[521,588,589],{"class":548},"User logged in",[521,591,576],{"class":531},[521,593,594],{"class":535},")\n",[521,596,598,600,602,605,607,610,614,617,619,622,624,626,629,631,633,636,638,640],{"class":523,"line":597},4,[521,599,447],{"class":535},[521,601,567],{"class":531},[521,603,604],{"class":570},"error",[521,606,573],{"class":535},[521,608,609],{"class":531},"{",[521,611,613],{"class":612},"swJcz"," action",[521,615,616],{"class":531},":",[521,618,545],{"class":531},[521,620,621],{"class":548},"payment",[521,623,576],{"class":531},[521,625,584],{"class":531},[521,627,628],{"class":612}," error",[521,630,616],{"class":531},[521,632,545],{"class":531},[521,634,635],{"class":548},"card_declined",[521,637,576],{"class":531},[521,639,539],{"class":531},[521,641,594],{"class":535},[521,643,645,647,649,652,654,656,659,661,663,665,668,670],{"class":523,"line":644},5,[521,646,447],{"class":535},[521,648,567],{"class":531},[521,650,651],{"class":570},"warn",[521,653,573],{"class":535},[521,655,576],{"class":531},[521,657,658],{"class":548},"cache",[521,660,576],{"class":531},[521,662,584],{"class":531},[521,664,545],{"class":531},[521,666,667],{"class":548},"Cache miss",[521,669,576],{"class":531},[521,671,594],{"class":535},[511,673,678],{"className":674,"code":675,"filename":676,"language":677,"meta":517,"style":517},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","10:23:45.612 [auth] User logged in\n10:23:45.613 ERROR [my-app] action=payment error=card_declined\n10:23:45.614 [cache] Cache miss\n","Output","bash",[441,679,680,689,712],{"__ignoreMap":517},[521,681,682,686],{"class":523,"line":524},[521,683,685],{"class":684},"sBMFI","10:23:45.612",[521,687,688],{"class":535}," [auth] User logged in\n",[521,690,691,694,697,700,703,705,707,709],{"class":523,"line":555},[521,692,693],{"class":684},"10:23:45.613",[521,695,696],{"class":548}," ERROR",[521,698,699],{"class":535}," [my-app] action",[521,701,702],{"class":531},"=",[521,704,621],{"class":548},[521,706,628],{"class":535},[521,708,702],{"class":531},[521,710,711],{"class":548},"card_declined\n",[521,713,714,717],{"class":523,"line":562},[521,715,716],{"class":684},"10:23:45.614",[521,718,719],{"class":535}," [cache] Cache miss\n",[427,721,722],{},"Two call styles:",[464,724,725,735],{},[467,726,727,730,731,734],{},[436,728,729],{},"Tagged",": ",[441,732,733],{},"log.info('tag', 'message')"," for quick, readable console output",[467,736,737,730,740,743],{},[436,738,739],{},"Structured",[441,741,742],{},"log.info({ key: value })"," for rich events that flow through the drain pipeline",[431,745,748,749,751],{"color":746,"icon":747},"neutral","i-lucide-arrow-right","See the full ",[489,750,46],{"href":47}," guide for all patterns and drain integration.",[500,753,755],{"id":754},"createlogger-wide-events","createLogger (Wide Events)",[427,757,758,759,762,763,616],{},"When you need to ",[436,760,761],{},"accumulate context"," across multiple steps of an operation, whether a script, background job, queue worker, or workflow, use ",[441,764,765],{},"createLogger",[508,767,768,974],{},[511,769,772],{"className":513,"code":770,"filename":771,"language":516,"meta":517,"style":517},"import { initLogger, createLogger } from 'evlog'\n\ninitLogger({ env: { service: 'sync-worker' } })\n\nconst log = createLogger({ jobId: job.id, queue: 'emails' })\n\nlog.set({ batch: { size: 50 } })\nlog.set({ batch: { processed: 50 } })\nlog.emit()\n","scripts\u002Fsync-job.ts",[441,773,774,798,802,836,840,888,893,929,961],{"__ignoreMap":517},[521,775,776,778,780,783,785,788,790,792,794,796],{"class":523,"line":524},[521,777,528],{"class":527},[521,779,532],{"class":531},[521,781,782],{"class":535}," initLogger",[521,784,584],{"class":531},[521,786,787],{"class":535}," createLogger",[521,789,539],{"class":531},[521,791,542],{"class":527},[521,793,545],{"class":531},[521,795,549],{"class":548},[521,797,552],{"class":531},[521,799,800],{"class":523,"line":555},[521,801,559],{"emptyLinePlaceholder":558},[521,803,804,807,809,811,814,816,818,821,823,825,828,830,832,834],{"class":523,"line":562},[521,805,806],{"class":570},"initLogger",[521,808,573],{"class":535},[521,810,609],{"class":531},[521,812,813],{"class":612}," env",[521,815,616],{"class":531},[521,817,532],{"class":531},[521,819,820],{"class":612}," service",[521,822,616],{"class":531},[521,824,545],{"class":531},[521,826,827],{"class":548},"sync-worker",[521,829,576],{"class":531},[521,831,539],{"class":531},[521,833,539],{"class":531},[521,835,594],{"class":535},[521,837,838],{"class":523,"line":597},[521,839,559],{"emptyLinePlaceholder":558},[521,841,842,846,849,851,853,855,857,860,862,865,867,870,872,875,877,879,882,884,886],{"class":523,"line":644},[521,843,845],{"class":844},"spNyl","const",[521,847,848],{"class":535}," log ",[521,850,702],{"class":531},[521,852,787],{"class":570},[521,854,573],{"class":535},[521,856,609],{"class":531},[521,858,859],{"class":612}," jobId",[521,861,616],{"class":531},[521,863,864],{"class":535}," job",[521,866,567],{"class":531},[521,868,869],{"class":535},"id",[521,871,584],{"class":531},[521,873,874],{"class":612}," queue",[521,876,616],{"class":531},[521,878,545],{"class":531},[521,880,881],{"class":548},"emails",[521,883,576],{"class":531},[521,885,539],{"class":531},[521,887,594],{"class":535},[521,889,891],{"class":523,"line":890},6,[521,892,559],{"emptyLinePlaceholder":558},[521,894,896,898,900,903,905,907,910,912,914,917,919,923,925,927],{"class":523,"line":895},7,[521,897,447],{"class":535},[521,899,567],{"class":531},[521,901,902],{"class":570},"set",[521,904,573],{"class":535},[521,906,609],{"class":531},[521,908,909],{"class":612}," batch",[521,911,616],{"class":531},[521,913,532],{"class":531},[521,915,916],{"class":612}," size",[521,918,616],{"class":531},[521,920,922],{"class":921},"sbssI"," 50",[521,924,539],{"class":531},[521,926,539],{"class":531},[521,928,594],{"class":535},[521,930,932,934,936,938,940,942,944,946,948,951,953,955,957,959],{"class":523,"line":931},8,[521,933,447],{"class":535},[521,935,567],{"class":531},[521,937,902],{"class":570},[521,939,573],{"class":535},[521,941,609],{"class":531},[521,943,909],{"class":612},[521,945,616],{"class":531},[521,947,532],{"class":531},[521,949,950],{"class":612}," processed",[521,952,616],{"class":531},[521,954,922],{"class":921},[521,956,539],{"class":531},[521,958,539],{"class":531},[521,960,594],{"class":535},[521,962,964,966,968,971],{"class":523,"line":963},9,[521,965,447],{"class":535},[521,967,567],{"class":531},[521,969,970],{"class":570},"emit",[521,972,973],{"class":535},"()\n",[511,975,978],{"className":674,"code":976,"filename":977,"language":677,"meta":517,"style":517},"10:23:45.612 INFO [sync-worker] in 1204ms\n  ├─ jobId: job_abc123\n  ├─ queue: emails\n  └─ batch: size=50 processed=50\n","Output (Pretty)",[441,979,980,990,1001,1011],{"__ignoreMap":517},[521,981,982,984,987],{"class":523,"line":524},[521,983,685],{"class":684},[521,985,986],{"class":548}," INFO",[521,988,989],{"class":535}," [sync-worker] in 1204ms\n",[521,991,992,995,998],{"class":523,"line":555},[521,993,994],{"class":684},"  ├─",[521,996,997],{"class":548}," jobId:",[521,999,1000],{"class":548}," job_abc123\n",[521,1002,1003,1005,1008],{"class":523,"line":562},[521,1004,994],{"class":684},[521,1006,1007],{"class":548}," queue:",[521,1009,1010],{"class":548}," emails\n",[521,1012,1013,1016,1019,1022,1025,1028],{"class":523,"line":597},[521,1014,1015],{"class":684},"  └─",[521,1017,1018],{"class":548}," batch:",[521,1020,1021],{"class":548}," size=",[521,1023,1024],{"class":921},"50",[521,1026,1027],{"class":548}," processed=",[521,1029,1030],{"class":921},"50\n",[427,1032,1033,1036,1037,444,1039,444,1041,444,1043,444,1045,1047,1048,567],{},[441,1034,1035],{},"createLogger()"," accepts any initial context as a plain object. It returns a logger with ",[441,1038,902],{},[441,1040,604],{},[441,1042,433],{},[441,1044,651],{},[441,1046,970],{},", and ",[441,1049,1050],{},"getContext",[427,1052,1053,1054,1057,1058,444,1061,1047,1064,616],{},"For HTTP request contexts specifically, use ",[441,1055,1056],{},"createRequestLogger()"," which pre-populates ",[441,1059,1060],{},"method",[441,1062,1063],{},"path",[441,1065,1066],{},"requestId",[511,1068,1071],{"className":513,"code":1069,"filename":1070,"language":516,"meta":517,"style":517},"import { createRequestLogger } from 'evlog'\n\nconst log = createRequestLogger({ method: 'POST', path: '\u002Fapi\u002Fcheckout' })\n","src\u002Fworker.ts",[441,1072,1073,1092,1096],{"__ignoreMap":517},[521,1074,1075,1077,1079,1082,1084,1086,1088,1090],{"class":523,"line":524},[521,1076,528],{"class":527},[521,1078,532],{"class":531},[521,1080,1081],{"class":535}," createRequestLogger",[521,1083,539],{"class":531},[521,1085,542],{"class":527},[521,1087,545],{"class":531},[521,1089,549],{"class":548},[521,1091,552],{"class":531},[521,1093,1094],{"class":523,"line":555},[521,1095,559],{"emptyLinePlaceholder":558},[521,1097,1098,1100,1102,1104,1106,1108,1110,1113,1115,1117,1120,1122,1124,1127,1129,1131,1134,1136,1138],{"class":523,"line":562},[521,1099,845],{"class":844},[521,1101,848],{"class":535},[521,1103,702],{"class":531},[521,1105,1081],{"class":570},[521,1107,573],{"class":535},[521,1109,609],{"class":531},[521,1111,1112],{"class":612}," method",[521,1114,616],{"class":531},[521,1116,545],{"class":531},[521,1118,1119],{"class":548},"POST",[521,1121,576],{"class":531},[521,1123,584],{"class":531},[521,1125,1126],{"class":612}," path",[521,1128,616],{"class":531},[521,1130,545],{"class":531},[521,1132,1133],{"class":548},"\u002Fapi\u002Fcheckout",[521,1135,576],{"class":531},[521,1137,539],{"class":531},[521,1139,594],{"class":535},[431,1141,1142,1143,1145,1146,1149,1150,1153],{"color":433,"icon":13},"With ",[441,1144,765],{}," and ",[441,1147,1148],{},"createRequestLogger",", you must call ",[441,1151,1152],{},"log.emit()"," manually. In framework integrations, this happens automatically.",[500,1155,1157],{"id":1156},"uselogger-retrieve-the-request-logger","useLogger (Retrieve the Request Logger)",[427,1159,1160,1161,1164],{},"When using a framework integration (Nuxt, Hono, Express, etc.), the middleware automatically creates a wide event logger on request start and emits it on response end. ",[441,1162,1163],{},"useLogger(event)"," retrieves that logger from the request context:",[508,1166,1167,1435],{},[511,1168,1171],{"className":513,"code":1169,"filename":1170,"language":516,"meta":517,"style":517},"import { useLogger } from 'evlog'\n\nexport default defineEventHandler(async (event) => {\n  const log = useLogger(event)\n\n  log.set({ user: { id: 1, plan: 'pro' } })\n  log.set({ cart: { items: 3, total: 9999 } })\n\n  const order = await processCheckout()\n  log.set({ orderId: order.id })\n\n  return { success: true, orderId: order.id }\n})\n","server\u002Fapi\u002Fcheckout.post.ts",[441,1172,1173,1192,1196,1228,1246,1250,1298,1341,1345,1362,1390,1395,1427],{"__ignoreMap":517},[521,1174,1175,1177,1179,1182,1184,1186,1188,1190],{"class":523,"line":524},[521,1176,528],{"class":527},[521,1178,532],{"class":531},[521,1180,1181],{"class":535}," useLogger",[521,1183,539],{"class":531},[521,1185,542],{"class":527},[521,1187,545],{"class":531},[521,1189,549],{"class":548},[521,1191,552],{"class":531},[521,1193,1194],{"class":523,"line":555},[521,1195,559],{"emptyLinePlaceholder":558},[521,1197,1198,1201,1204,1207,1209,1212,1215,1219,1222,1225],{"class":523,"line":562},[521,1199,1200],{"class":527},"export",[521,1202,1203],{"class":527}," default",[521,1205,1206],{"class":570}," defineEventHandler",[521,1208,573],{"class":535},[521,1210,1211],{"class":844},"async",[521,1213,1214],{"class":531}," (",[521,1216,1218],{"class":1217},"sHdIc","event",[521,1220,1221],{"class":531},")",[521,1223,1224],{"class":844}," =>",[521,1226,1227],{"class":531}," {\n",[521,1229,1230,1233,1235,1238,1240,1242,1244],{"class":523,"line":597},[521,1231,1232],{"class":844},"  const",[521,1234,536],{"class":535},[521,1236,1237],{"class":531}," =",[521,1239,1181],{"class":570},[521,1241,573],{"class":612},[521,1243,1218],{"class":535},[521,1245,594],{"class":612},[521,1247,1248],{"class":523,"line":644},[521,1249,559],{"emptyLinePlaceholder":558},[521,1251,1252,1255,1257,1259,1261,1263,1266,1268,1270,1273,1275,1278,1280,1283,1285,1287,1290,1292,1294,1296],{"class":523,"line":890},[521,1253,1254],{"class":535},"  log",[521,1256,567],{"class":531},[521,1258,902],{"class":570},[521,1260,573],{"class":612},[521,1262,609],{"class":531},[521,1264,1265],{"class":612}," user",[521,1267,616],{"class":531},[521,1269,532],{"class":531},[521,1271,1272],{"class":612}," id",[521,1274,616],{"class":531},[521,1276,1277],{"class":921}," 1",[521,1279,584],{"class":531},[521,1281,1282],{"class":612}," plan",[521,1284,616],{"class":531},[521,1286,545],{"class":531},[521,1288,1289],{"class":548},"pro",[521,1291,576],{"class":531},[521,1293,539],{"class":531},[521,1295,539],{"class":531},[521,1297,594],{"class":612},[521,1299,1300,1302,1304,1306,1308,1310,1313,1315,1317,1320,1322,1325,1327,1330,1332,1335,1337,1339],{"class":523,"line":895},[521,1301,1254],{"class":535},[521,1303,567],{"class":531},[521,1305,902],{"class":570},[521,1307,573],{"class":612},[521,1309,609],{"class":531},[521,1311,1312],{"class":612}," cart",[521,1314,616],{"class":531},[521,1316,532],{"class":531},[521,1318,1319],{"class":612}," items",[521,1321,616],{"class":531},[521,1323,1324],{"class":921}," 3",[521,1326,584],{"class":531},[521,1328,1329],{"class":612}," total",[521,1331,616],{"class":531},[521,1333,1334],{"class":921}," 9999",[521,1336,539],{"class":531},[521,1338,539],{"class":531},[521,1340,594],{"class":612},[521,1342,1343],{"class":523,"line":931},[521,1344,559],{"emptyLinePlaceholder":558},[521,1346,1347,1349,1352,1354,1357,1360],{"class":523,"line":963},[521,1348,1232],{"class":844},[521,1350,1351],{"class":535}," order",[521,1353,1237],{"class":531},[521,1355,1356],{"class":527}," await",[521,1358,1359],{"class":570}," processCheckout",[521,1361,973],{"class":612},[521,1363,1365,1367,1369,1371,1373,1375,1378,1380,1382,1384,1386,1388],{"class":523,"line":1364},10,[521,1366,1254],{"class":535},[521,1368,567],{"class":531},[521,1370,902],{"class":570},[521,1372,573],{"class":612},[521,1374,609],{"class":531},[521,1376,1377],{"class":612}," orderId",[521,1379,616],{"class":531},[521,1381,1351],{"class":535},[521,1383,567],{"class":531},[521,1385,869],{"class":535},[521,1387,539],{"class":531},[521,1389,594],{"class":612},[521,1391,1393],{"class":523,"line":1392},11,[521,1394,559],{"emptyLinePlaceholder":558},[521,1396,1398,1401,1403,1406,1408,1412,1414,1416,1418,1420,1422,1424],{"class":523,"line":1397},12,[521,1399,1400],{"class":527},"  return",[521,1402,532],{"class":531},[521,1404,1405],{"class":612}," success",[521,1407,616],{"class":531},[521,1409,1411],{"class":1410},"sfNiH"," true",[521,1413,584],{"class":531},[521,1415,1377],{"class":612},[521,1417,616],{"class":531},[521,1419,1351],{"class":535},[521,1421,567],{"class":531},[521,1423,869],{"class":535},[521,1425,1426],{"class":531}," }\n",[521,1428,1430,1433],{"class":523,"line":1429},13,[521,1431,1432],{"class":531},"}",[521,1434,594],{"class":535},[511,1436,1438],{"className":674,"code":1437,"filename":977,"language":677,"meta":517,"style":517},"10:23:45.612 INFO [my-app] POST \u002Fapi\u002Fcheckout 200 in 234ms\n  ├─ user: id=1 plan=pro\n  ├─ cart: items=3 total=9999\n  └─ orderId: ord_abc123\n",[441,1439,1440,1449,1465,1484],{"__ignoreMap":517},[521,1441,1442,1444,1446],{"class":523,"line":524},[521,1443,685],{"class":684},[521,1445,986],{"class":548},[521,1447,1448],{"class":535}," [my-app] POST \u002Fapi\u002Fcheckout 200 in 234ms\n",[521,1450,1451,1453,1456,1459,1462],{"class":523,"line":555},[521,1452,994],{"class":684},[521,1454,1455],{"class":548}," user:",[521,1457,1458],{"class":548}," id=",[521,1460,1461],{"class":921},"1",[521,1463,1464],{"class":548}," plan=pro\n",[521,1466,1467,1469,1472,1475,1478,1481],{"class":523,"line":562},[521,1468,994],{"class":684},[521,1470,1471],{"class":548}," cart:",[521,1473,1474],{"class":548}," items=",[521,1476,1477],{"class":921},"3",[521,1479,1480],{"class":548}," total=",[521,1482,1483],{"class":921},"9999\n",[521,1485,1486,1488,1491],{"class":523,"line":597},[521,1487,1015],{"class":684},[521,1489,1490],{"class":548}," orderId:",[521,1492,1493],{"class":548}," ord_abc123\n",[431,1495,1498,1500,1501,567],{"color":1496,"icon":1497},"success","i-lucide-check",[441,1499,443],{}," doesn't create a logger, the framework middleware already did that. It just retrieves it from the event context so you can add data with ",[441,1502,1503],{},"set()",[1505,1506,1508],"h3",{"id":1507},"when-to-use-what","When to use what",[1510,1511,1512,1535],"table",{},[1513,1514,1515],"thead",{},[1516,1517,1518,1524,1531],"tr",{},[1519,1520,1521,1522],"th",{},"Use ",[441,1523,447],{},[1519,1525,1521,1526,1528,1529],{},[441,1527,1035],{}," \u002F ",[441,1530,1056],{},[1519,1532,1521,1533],{},[441,1534,1163],{},[1536,1537,1538,1550,1561],"tbody",{},[1516,1539,1540,1544,1547],{},[1541,1542,1543],"td",{},"Quick one-off events",[1541,1545,1546],{},"Scripts, jobs, workers, queues, HTTP without a framework",[1541,1548,1549],{},"API routes with a framework integration",[1516,1551,1552,1555,1558],{},[1541,1553,1554],{},"No context accumulation needed",[1541,1556,1557],{},"Accumulate context over an operation",[1541,1559,1560],{},"Retrieve the request-scoped logger",[1516,1562,1563,1566,1569],{},[1541,1564,1565],{},"Client-side logging",[1541,1567,1568],{},"Wide events (one log per operation)",[1541,1570,1571],{},"Access the auto-managed wide event",[1505,1573,1575],{"id":1574},"service-identification","Service Identification",[427,1577,1578],{},"In multi-service architectures, differentiate which service a log belongs to using either route-based configuration or explicit service names.",[1580,1581,1583],"h4",{"id":1582},"route-based-configuration","Route-Based Configuration",[427,1585,1586,1587,616],{},"Configure service names per route pattern in your ",[441,1588,1589],{},"nuxt.config.ts",[511,1591,1593],{"className":513,"code":1592,"filename":1589,"language":516,"meta":517,"style":517},"export default defineNuxtConfig({\n  modules: ['evlog\u002Fnuxt'],\n\n  evlog: {\n    env: {\n      service: 'default-service',\n    },\n    routes: {\n      '\u002Fapi\u002Fauth\u002F**': { service: 'auth-service' },\n      '\u002Fapi\u002Fpayment\u002F**': { service: 'payment-service' },\n      '\u002Fapi\u002Fbooking\u002F**': { service: 'booking-service' },\n    },\n  },\n})\n",[441,1594,1595,1609,1632,1636,1645,1654,1670,1675,1684,1712,1738,1764,1768,1773],{"__ignoreMap":517},[521,1596,1597,1599,1601,1604,1606],{"class":523,"line":524},[521,1598,1200],{"class":527},[521,1600,1203],{"class":527},[521,1602,1603],{"class":570}," defineNuxtConfig",[521,1605,573],{"class":535},[521,1607,1608],{"class":531},"{\n",[521,1610,1611,1614,1616,1619,1621,1624,1626,1629],{"class":523,"line":555},[521,1612,1613],{"class":612},"  modules",[521,1615,616],{"class":531},[521,1617,1618],{"class":535}," [",[521,1620,576],{"class":531},[521,1622,1623],{"class":548},"evlog\u002Fnuxt",[521,1625,576],{"class":531},[521,1627,1628],{"class":535},"]",[521,1630,1631],{"class":531},",\n",[521,1633,1634],{"class":523,"line":562},[521,1635,559],{"emptyLinePlaceholder":558},[521,1637,1638,1641,1643],{"class":523,"line":597},[521,1639,1640],{"class":612},"  evlog",[521,1642,616],{"class":531},[521,1644,1227],{"class":531},[521,1646,1647,1650,1652],{"class":523,"line":644},[521,1648,1649],{"class":612},"    env",[521,1651,616],{"class":531},[521,1653,1227],{"class":531},[521,1655,1656,1659,1661,1663,1666,1668],{"class":523,"line":890},[521,1657,1658],{"class":612},"      service",[521,1660,616],{"class":531},[521,1662,545],{"class":531},[521,1664,1665],{"class":548},"default-service",[521,1667,576],{"class":531},[521,1669,1631],{"class":531},[521,1671,1672],{"class":523,"line":895},[521,1673,1674],{"class":531},"    },\n",[521,1676,1677,1680,1682],{"class":523,"line":931},[521,1678,1679],{"class":612},"    routes",[521,1681,616],{"class":531},[521,1683,1227],{"class":531},[521,1685,1686,1689,1692,1694,1696,1698,1700,1702,1704,1707,1709],{"class":523,"line":963},[521,1687,1688],{"class":531},"      '",[521,1690,1691],{"class":612},"\u002Fapi\u002Fauth\u002F**",[521,1693,576],{"class":531},[521,1695,616],{"class":531},[521,1697,532],{"class":531},[521,1699,820],{"class":612},[521,1701,616],{"class":531},[521,1703,545],{"class":531},[521,1705,1706],{"class":548},"auth-service",[521,1708,576],{"class":531},[521,1710,1711],{"class":531}," },\n",[521,1713,1714,1716,1719,1721,1723,1725,1727,1729,1731,1734,1736],{"class":523,"line":1364},[521,1715,1688],{"class":531},[521,1717,1718],{"class":612},"\u002Fapi\u002Fpayment\u002F**",[521,1720,576],{"class":531},[521,1722,616],{"class":531},[521,1724,532],{"class":531},[521,1726,820],{"class":612},[521,1728,616],{"class":531},[521,1730,545],{"class":531},[521,1732,1733],{"class":548},"payment-service",[521,1735,576],{"class":531},[521,1737,1711],{"class":531},[521,1739,1740,1742,1745,1747,1749,1751,1753,1755,1757,1760,1762],{"class":523,"line":1392},[521,1741,1688],{"class":531},[521,1743,1744],{"class":612},"\u002Fapi\u002Fbooking\u002F**",[521,1746,576],{"class":531},[521,1748,616],{"class":531},[521,1750,532],{"class":531},[521,1752,820],{"class":612},[521,1754,616],{"class":531},[521,1756,545],{"class":531},[521,1758,1759],{"class":548},"booking-service",[521,1761,576],{"class":531},[521,1763,1711],{"class":531},[521,1765,1766],{"class":523,"line":1397},[521,1767,1674],{"class":531},[521,1769,1770],{"class":523,"line":1429},[521,1771,1772],{"class":531},"  },\n",[521,1774,1776,1778],{"class":523,"line":1775},14,[521,1777,1432],{"class":531},[521,1779,594],{"class":535},[427,1781,1782],{},"Logs from routes matching these patterns will automatically include the configured service name:",[511,1784,1786],{"className":674,"code":1785,"filename":676,"language":677,"meta":517,"style":517},"21:57:10.442 INFO [auth-service] POST \u002Fapi\u002Fauth\u002Flogin 200 in 1ms\n  ├─ requestId: 88ced16a-bef2-4483-86cb-2b4fb677ea52\n  ├─ user: id=user_123 email=demo@example.com\n  └─ action: login\n",[441,1787,1788,1798,1808,1820],{"__ignoreMap":517},[521,1789,1790,1793,1795],{"class":523,"line":524},[521,1791,1792],{"class":684},"21:57:10.442",[521,1794,986],{"class":548},[521,1796,1797],{"class":535}," [auth-service] POST \u002Fapi\u002Fauth\u002Flogin 200 in 1ms\n",[521,1799,1800,1802,1805],{"class":523,"line":555},[521,1801,994],{"class":684},[521,1803,1804],{"class":548}," requestId:",[521,1806,1807],{"class":548}," 88ced16a-bef2-4483-86cb-2b4fb677ea52\n",[521,1809,1810,1812,1814,1817],{"class":523,"line":562},[521,1811,994],{"class":684},[521,1813,1455],{"class":548},[521,1815,1816],{"class":548}," id=user_123",[521,1818,1819],{"class":548}," email=demo@example.com\n",[521,1821,1822,1824,1827],{"class":523,"line":597},[521,1823,1015],{"class":684},[521,1825,1826],{"class":548}," action:",[521,1828,1829],{"class":548}," login\n",[1580,1831,1833],{"id":1832},"explicit-service-parameter","Explicit Service Parameter",[427,1835,1836,1837,616],{},"Override the service name for specific routes using the second parameter of ",[441,1838,443],{},[511,1840,1843],{"className":513,"code":1841,"filename":1842,"language":516,"meta":517,"style":517},"import { useLogger } from 'evlog'\n\nexport default defineEventHandler((event) => {\n  const log = useLogger(event, 'legacy-service')\n\n  log.set({ action: 'process_legacy_request' })\n\n  return { success: true }\n})\n","server\u002Fapi\u002Flegacy\u002Fprocess.post.ts",[441,1844,1845,1863,1867,1887,1912,1916,1943,1947,1961],{"__ignoreMap":517},[521,1846,1847,1849,1851,1853,1855,1857,1859,1861],{"class":523,"line":524},[521,1848,528],{"class":527},[521,1850,532],{"class":531},[521,1852,1181],{"class":535},[521,1854,539],{"class":531},[521,1856,542],{"class":527},[521,1858,545],{"class":531},[521,1860,549],{"class":548},[521,1862,552],{"class":531},[521,1864,1865],{"class":523,"line":555},[521,1866,559],{"emptyLinePlaceholder":558},[521,1868,1869,1871,1873,1875,1877,1879,1881,1883,1885],{"class":523,"line":562},[521,1870,1200],{"class":527},[521,1872,1203],{"class":527},[521,1874,1206],{"class":570},[521,1876,573],{"class":535},[521,1878,573],{"class":531},[521,1880,1218],{"class":1217},[521,1882,1221],{"class":531},[521,1884,1224],{"class":844},[521,1886,1227],{"class":531},[521,1888,1889,1891,1893,1895,1897,1899,1901,1903,1905,1908,1910],{"class":523,"line":597},[521,1890,1232],{"class":844},[521,1892,536],{"class":535},[521,1894,1237],{"class":531},[521,1896,1181],{"class":570},[521,1898,573],{"class":612},[521,1900,1218],{"class":535},[521,1902,584],{"class":531},[521,1904,545],{"class":531},[521,1906,1907],{"class":548},"legacy-service",[521,1909,576],{"class":531},[521,1911,594],{"class":612},[521,1913,1914],{"class":523,"line":644},[521,1915,559],{"emptyLinePlaceholder":558},[521,1917,1918,1920,1922,1924,1926,1928,1930,1932,1934,1937,1939,1941],{"class":523,"line":890},[521,1919,1254],{"class":535},[521,1921,567],{"class":531},[521,1923,902],{"class":570},[521,1925,573],{"class":612},[521,1927,609],{"class":531},[521,1929,613],{"class":612},[521,1931,616],{"class":531},[521,1933,545],{"class":531},[521,1935,1936],{"class":548},"process_legacy_request",[521,1938,576],{"class":531},[521,1940,539],{"class":531},[521,1942,594],{"class":612},[521,1944,1945],{"class":523,"line":895},[521,1946,559],{"emptyLinePlaceholder":558},[521,1948,1949,1951,1953,1955,1957,1959],{"class":523,"line":931},[521,1950,1400],{"class":527},[521,1952,532],{"class":531},[521,1954,1405],{"class":612},[521,1956,616],{"class":531},[521,1958,1411],{"class":1410},[521,1960,1426],{"class":531},[521,1962,1963,1965],{"class":523,"line":963},[521,1964,1432],{"class":531},[521,1966,594],{"class":535},[431,1968,1969,1972,1973,1975,1976,1979],{"color":433,"icon":13},[436,1970,1971],{},"Priority order:"," Explicit ",[441,1974,443],{}," parameter > Route configuration > ",[441,1977,1978],{},"env.service"," > Auto-detected from environment",[500,1981,1983],{"id":1982},"createerror-structured-errors","createError (Structured Errors)",[427,1985,1521,1986,1989],{},[441,1987,1988],{},"createError()"," to throw errors with actionable context:",[508,1991,1992,2113],{},[511,1993,1995],{"className":513,"code":1994,"filename":1170,"language":516,"meta":517,"style":517},"import { createError } from 'evlog'\n\nthrow createError({\n  message: 'Payment failed',\n  status: 402,\n  why: 'Card declined by issuer',\n  fix: 'Try a different payment method',\n  link: 'https:\u002F\u002Fdocs.example.com\u002Fpayments\u002Fdeclined',\n})\n",[441,1996,1997,2016,2020,2031,2047,2059,2075,2091,2107],{"__ignoreMap":517},[521,1998,1999,2001,2003,2006,2008,2010,2012,2014],{"class":523,"line":524},[521,2000,528],{"class":527},[521,2002,532],{"class":531},[521,2004,2005],{"class":535}," createError",[521,2007,539],{"class":531},[521,2009,542],{"class":527},[521,2011,545],{"class":531},[521,2013,549],{"class":548},[521,2015,552],{"class":531},[521,2017,2018],{"class":523,"line":555},[521,2019,559],{"emptyLinePlaceholder":558},[521,2021,2022,2025,2027,2029],{"class":523,"line":562},[521,2023,2024],{"class":527},"throw",[521,2026,2005],{"class":570},[521,2028,573],{"class":535},[521,2030,1608],{"class":531},[521,2032,2033,2036,2038,2040,2043,2045],{"class":523,"line":597},[521,2034,2035],{"class":612},"  message",[521,2037,616],{"class":531},[521,2039,545],{"class":531},[521,2041,2042],{"class":548},"Payment failed",[521,2044,576],{"class":531},[521,2046,1631],{"class":531},[521,2048,2049,2052,2054,2057],{"class":523,"line":644},[521,2050,2051],{"class":612},"  status",[521,2053,616],{"class":531},[521,2055,2056],{"class":921}," 402",[521,2058,1631],{"class":531},[521,2060,2061,2064,2066,2068,2071,2073],{"class":523,"line":890},[521,2062,2063],{"class":612},"  why",[521,2065,616],{"class":531},[521,2067,545],{"class":531},[521,2069,2070],{"class":548},"Card declined by issuer",[521,2072,576],{"class":531},[521,2074,1631],{"class":531},[521,2076,2077,2080,2082,2084,2087,2089],{"class":523,"line":895},[521,2078,2079],{"class":612},"  fix",[521,2081,616],{"class":531},[521,2083,545],{"class":531},[521,2085,2086],{"class":548},"Try a different payment method",[521,2088,576],{"class":531},[521,2090,1631],{"class":531},[521,2092,2093,2096,2098,2100,2103,2105],{"class":523,"line":931},[521,2094,2095],{"class":612},"  link",[521,2097,616],{"class":531},[521,2099,545],{"class":531},[521,2101,2102],{"class":548},"https:\u002F\u002Fdocs.example.com\u002Fpayments\u002Fdeclined",[521,2104,576],{"class":531},[521,2106,1631],{"class":531},[521,2108,2109,2111],{"class":523,"line":963},[521,2110,1432],{"class":531},[521,2112,594],{"class":535},[511,2114,2119],{"className":2115,"code":2116,"filename":2117,"language":2118,"meta":517,"style":517},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"statusCode\": 402,\n  \"message\": \"Payment failed\",\n  \"data\": {\n    \"why\": \"Card declined by issuer\",\n    \"fix\": \"Try a different payment method\",\n    \"link\": \"https:\u002F\u002Fdocs.example.com\u002Fpayments\u002Fdeclined\"\n  }\n}\n","Response","json",[441,2120,2121,2125,2142,2162,2175,2195,2214,2232,2237],{"__ignoreMap":517},[521,2122,2123],{"class":523,"line":524},[521,2124,1608],{"class":531},[521,2126,2127,2130,2133,2136,2138,2140],{"class":523,"line":555},[521,2128,2129],{"class":531},"  \"",[521,2131,2132],{"class":844},"statusCode",[521,2134,2135],{"class":531},"\"",[521,2137,616],{"class":531},[521,2139,2056],{"class":921},[521,2141,1631],{"class":531},[521,2143,2144,2146,2149,2151,2153,2156,2158,2160],{"class":523,"line":562},[521,2145,2129],{"class":531},[521,2147,2148],{"class":844},"message",[521,2150,2135],{"class":531},[521,2152,616],{"class":531},[521,2154,2155],{"class":531}," \"",[521,2157,2042],{"class":548},[521,2159,2135],{"class":531},[521,2161,1631],{"class":531},[521,2163,2164,2166,2169,2171,2173],{"class":523,"line":597},[521,2165,2129],{"class":531},[521,2167,2168],{"class":844},"data",[521,2170,2135],{"class":531},[521,2172,616],{"class":531},[521,2174,1227],{"class":531},[521,2176,2177,2180,2183,2185,2187,2189,2191,2193],{"class":523,"line":644},[521,2178,2179],{"class":531},"    \"",[521,2181,2182],{"class":684},"why",[521,2184,2135],{"class":531},[521,2186,616],{"class":531},[521,2188,2155],{"class":531},[521,2190,2070],{"class":548},[521,2192,2135],{"class":531},[521,2194,1631],{"class":531},[521,2196,2197,2199,2202,2204,2206,2208,2210,2212],{"class":523,"line":890},[521,2198,2179],{"class":531},[521,2200,2201],{"class":684},"fix",[521,2203,2135],{"class":531},[521,2205,616],{"class":531},[521,2207,2155],{"class":531},[521,2209,2086],{"class":548},[521,2211,2135],{"class":531},[521,2213,1631],{"class":531},[521,2215,2216,2218,2221,2223,2225,2227,2229],{"class":523,"line":895},[521,2217,2179],{"class":531},[521,2219,2220],{"class":684},"link",[521,2222,2135],{"class":531},[521,2224,616],{"class":531},[521,2226,2155],{"class":531},[521,2228,2102],{"class":548},[521,2230,2231],{"class":531},"\"\n",[521,2233,2234],{"class":523,"line":931},[521,2235,2236],{"class":531},"  }\n",[521,2238,2239],{"class":523,"line":963},[521,2240,2241],{"class":531},"}\n",[1505,2243,2245],{"id":2244},"error-fields","Error Fields",[1510,2247,2248,2261],{},[1513,2249,2250],{},[1516,2251,2252,2255,2258],{},[1519,2253,2254],{},"Field",[1519,2256,2257],{},"Required",[1519,2259,2260],{},"Description",[1536,2262,2263,2275,2288,2299,2310,2321,2333],{},[1516,2264,2265,2269,2272],{},[1541,2266,2267],{},[441,2268,2148],{},[1541,2270,2271],{},"Yes",[1541,2273,2274],{},"What happened (user-facing)",[1516,2276,2277,2282,2285],{},[1541,2278,2279],{},[441,2280,2281],{},"status",[1541,2283,2284],{},"No",[1541,2286,2287],{},"HTTP status code (default: 500)",[1516,2289,2290,2294,2296],{},[1541,2291,2292],{},[441,2293,2182],{},[1541,2295,2284],{},[1541,2297,2298],{},"Technical reason (for debugging)",[1516,2300,2301,2305,2307],{},[1541,2302,2303],{},[441,2304,2201],{},[1541,2306,2284],{},[1541,2308,2309],{},"Actionable solution",[1516,2311,2312,2316,2318],{},[1541,2313,2314],{},[441,2315,2220],{},[1541,2317,2284],{},[1541,2319,2320],{},"Documentation URL for more info",[1516,2322,2323,2328,2330],{},[1541,2324,2325],{},[441,2326,2327],{},"cause",[1541,2329,2284],{},[1541,2331,2332],{},"Original error (if wrapping)",[1516,2334,2335,2340,2342],{},[1541,2336,2337],{},[441,2338,2339],{},"internal",[1541,2341,2284],{},[1541,2343,2344,2345],{},"Backend-only fields for logs and wide events — never included in HTTP JSON or ",[441,2346,2347],{},"parseError()",[1505,2349,2351],{"id":2350},"frontend-integration","Frontend Integration",[427,2353,1521,2354,2356],{},[441,2355,2347],{}," to extract all error fields on the client:",[511,2358,2361],{"className":513,"code":2359,"filename":2360,"language":516,"meta":517,"style":517},"import { parseError } from 'evlog'\n\nexport async function checkout(cart: Cart) {\n  try {\n    await $fetch('\u002Fapi\u002Fcheckout', { method: 'POST', body: cart })\n  } catch (err) {\n    const error = parseError(err)\n\n    toast.add({\n      title: error.message,\n      description: error.why,\n      color: 'error',\n      actions: error.link\n        ? [{ label: 'Learn more', onClick: () => window.open(error.link) }]\n        : undefined,\n    })\n\n    if (error.fix) {\n      console.info(`Fix: ${error.fix}`)\n    }\n  }\n}\n","composables\u002FuseCheckout.ts",[441,2362,2363,2382,2386,2413,2420,2463,2481,2498,2502,2516,2531,2546,2561,2575,2631,2640,2648,2653,2671,2703,2709,2714],{"__ignoreMap":517},[521,2364,2365,2367,2369,2372,2374,2376,2378,2380],{"class":523,"line":524},[521,2366,528],{"class":527},[521,2368,532],{"class":531},[521,2370,2371],{"class":535}," parseError",[521,2373,539],{"class":531},[521,2375,542],{"class":527},[521,2377,545],{"class":531},[521,2379,549],{"class":548},[521,2381,552],{"class":531},[521,2383,2384],{"class":523,"line":555},[521,2385,559],{"emptyLinePlaceholder":558},[521,2387,2388,2390,2393,2396,2399,2401,2404,2406,2409,2411],{"class":523,"line":562},[521,2389,1200],{"class":527},[521,2391,2392],{"class":844}," async",[521,2394,2395],{"class":844}," function",[521,2397,2398],{"class":570}," checkout",[521,2400,573],{"class":531},[521,2402,2403],{"class":1217},"cart",[521,2405,616],{"class":531},[521,2407,2408],{"class":684}," Cart",[521,2410,1221],{"class":531},[521,2412,1227],{"class":531},[521,2414,2415,2418],{"class":523,"line":597},[521,2416,2417],{"class":527},"  try",[521,2419,1227],{"class":531},[521,2421,2422,2425,2428,2430,2432,2434,2436,2438,2440,2442,2444,2446,2448,2450,2452,2455,2457,2459,2461],{"class":523,"line":644},[521,2423,2424],{"class":527},"    await",[521,2426,2427],{"class":570}," $fetch",[521,2429,573],{"class":612},[521,2431,576],{"class":531},[521,2433,1133],{"class":548},[521,2435,576],{"class":531},[521,2437,584],{"class":531},[521,2439,532],{"class":531},[521,2441,1112],{"class":612},[521,2443,616],{"class":531},[521,2445,545],{"class":531},[521,2447,1119],{"class":548},[521,2449,576],{"class":531},[521,2451,584],{"class":531},[521,2453,2454],{"class":612}," body",[521,2456,616],{"class":531},[521,2458,1312],{"class":535},[521,2460,539],{"class":531},[521,2462,594],{"class":612},[521,2464,2465,2468,2471,2473,2476,2479],{"class":523,"line":890},[521,2466,2467],{"class":531},"  }",[521,2469,2470],{"class":527}," catch",[521,2472,1214],{"class":612},[521,2474,2475],{"class":535},"err",[521,2477,2478],{"class":612},") ",[521,2480,1608],{"class":531},[521,2482,2483,2486,2488,2490,2492,2494,2496],{"class":523,"line":895},[521,2484,2485],{"class":844},"    const",[521,2487,628],{"class":535},[521,2489,1237],{"class":531},[521,2491,2371],{"class":570},[521,2493,573],{"class":612},[521,2495,2475],{"class":535},[521,2497,594],{"class":612},[521,2499,2500],{"class":523,"line":931},[521,2501,559],{"emptyLinePlaceholder":558},[521,2503,2504,2507,2509,2512,2514],{"class":523,"line":963},[521,2505,2506],{"class":535},"    toast",[521,2508,567],{"class":531},[521,2510,2511],{"class":570},"add",[521,2513,573],{"class":612},[521,2515,1608],{"class":531},[521,2517,2518,2521,2523,2525,2527,2529],{"class":523,"line":1364},[521,2519,2520],{"class":612},"      title",[521,2522,616],{"class":531},[521,2524,628],{"class":535},[521,2526,567],{"class":531},[521,2528,2148],{"class":535},[521,2530,1631],{"class":531},[521,2532,2533,2536,2538,2540,2542,2544],{"class":523,"line":1392},[521,2534,2535],{"class":612},"      description",[521,2537,616],{"class":531},[521,2539,628],{"class":535},[521,2541,567],{"class":531},[521,2543,2182],{"class":535},[521,2545,1631],{"class":531},[521,2547,2548,2551,2553,2555,2557,2559],{"class":523,"line":1397},[521,2549,2550],{"class":612},"      color",[521,2552,616],{"class":531},[521,2554,545],{"class":531},[521,2556,604],{"class":548},[521,2558,576],{"class":531},[521,2560,1631],{"class":531},[521,2562,2563,2566,2568,2570,2572],{"class":523,"line":1429},[521,2564,2565],{"class":612},"      actions",[521,2567,616],{"class":531},[521,2569,628],{"class":535},[521,2571,567],{"class":531},[521,2573,2574],{"class":535},"link\n",[521,2576,2577,2580,2582,2584,2587,2589,2591,2594,2596,2598,2601,2603,2606,2608,2611,2613,2616,2618,2620,2622,2624,2626,2628],{"class":523,"line":1775},[521,2578,2579],{"class":531},"        ?",[521,2581,1618],{"class":612},[521,2583,609],{"class":531},[521,2585,2586],{"class":612}," label",[521,2588,616],{"class":531},[521,2590,545],{"class":531},[521,2592,2593],{"class":548},"Learn more",[521,2595,576],{"class":531},[521,2597,584],{"class":531},[521,2599,2600],{"class":570}," onClick",[521,2602,616],{"class":531},[521,2604,2605],{"class":531}," ()",[521,2607,1224],{"class":844},[521,2609,2610],{"class":535}," window",[521,2612,567],{"class":531},[521,2614,2615],{"class":570},"open",[521,2617,573],{"class":612},[521,2619,604],{"class":535},[521,2621,567],{"class":531},[521,2623,2220],{"class":535},[521,2625,2478],{"class":612},[521,2627,1432],{"class":531},[521,2629,2630],{"class":612},"]\n",[521,2632,2634,2637],{"class":523,"line":2633},15,[521,2635,2636],{"class":531},"        :",[521,2638,2639],{"class":531}," undefined,\n",[521,2641,2643,2646],{"class":523,"line":2642},16,[521,2644,2645],{"class":531},"    }",[521,2647,594],{"class":612},[521,2649,2651],{"class":523,"line":2650},17,[521,2652,559],{"emptyLinePlaceholder":558},[521,2654,2656,2659,2661,2663,2665,2667,2669],{"class":523,"line":2655},18,[521,2657,2658],{"class":527},"    if",[521,2660,1214],{"class":612},[521,2662,604],{"class":535},[521,2664,567],{"class":531},[521,2666,2201],{"class":535},[521,2668,2478],{"class":612},[521,2670,1608],{"class":531},[521,2672,2674,2677,2679,2681,2683,2686,2689,2692,2694,2696,2698,2701],{"class":523,"line":2673},19,[521,2675,2676],{"class":535},"      console",[521,2678,567],{"class":531},[521,2680,433],{"class":570},[521,2682,573],{"class":612},[521,2684,2685],{"class":531},"`",[521,2687,2688],{"class":548},"Fix: ",[521,2690,2691],{"class":531},"${",[521,2693,604],{"class":535},[521,2695,567],{"class":531},[521,2697,2201],{"class":535},[521,2699,2700],{"class":531},"}`",[521,2702,594],{"class":612},[521,2704,2706],{"class":523,"line":2705},20,[521,2707,2708],{"class":531},"    }\n",[521,2710,2712],{"class":523,"line":2711},21,[521,2713,2236],{"class":531},[521,2715,2717],{"class":523,"line":2716},22,[521,2718,2241],{"class":531},[500,2720,2722],{"id":2721},"log-client-side","log (Client-Side)",[427,2724,2725,2726,2728],{},"The same ",[441,2727,447],{}," API works on the client side, outputting to the browser console:",[508,2730,2731,2959],{},[511,2732,2737],{"className":2733,"code":2734,"filename":2735,"language":2736,"meta":517,"style":517},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nasync function handleCheckout() {\n  log.info('checkout', 'User initiated checkout')\n\n  try {\n    await $fetch('\u002Fapi\u002Fcheckout', { method: 'POST' })\n    log.info({ action: 'checkout', status: 'success' })\n  } catch (err) {\n    log.error({ action: 'checkout', error: 'failed' })\n  }\n}\n\u003C\u002Fscript>\n","components\u002FCheckoutButton.vue","vue",[441,2738,2739,2765,2779,2807,2811,2817,2849,2889,2903,2942,2946,2950],{"__ignoreMap":517},[521,2740,2741,2744,2747,2750,2753,2755,2757,2760,2762],{"class":523,"line":524},[521,2742,2743],{"class":531},"\u003C",[521,2745,2746],{"class":612},"script",[521,2748,2749],{"class":844}," setup",[521,2751,2752],{"class":844}," lang",[521,2754,702],{"class":531},[521,2756,2135],{"class":531},[521,2758,2759],{"class":548},"ts",[521,2761,2135],{"class":531},[521,2763,2764],{"class":531},">\n",[521,2766,2767,2769,2771,2774,2777],{"class":523,"line":555},[521,2768,1211],{"class":844},[521,2770,2395],{"class":844},[521,2772,2773],{"class":570}," handleCheckout",[521,2775,2776],{"class":531},"()",[521,2778,1227],{"class":531},[521,2780,2781,2783,2785,2787,2789,2791,2794,2796,2798,2800,2803,2805],{"class":523,"line":562},[521,2782,1254],{"class":535},[521,2784,567],{"class":531},[521,2786,433],{"class":570},[521,2788,573],{"class":612},[521,2790,576],{"class":531},[521,2792,2793],{"class":548},"checkout",[521,2795,576],{"class":531},[521,2797,584],{"class":531},[521,2799,545],{"class":531},[521,2801,2802],{"class":548},"User initiated checkout",[521,2804,576],{"class":531},[521,2806,594],{"class":612},[521,2808,2809],{"class":523,"line":597},[521,2810,559],{"emptyLinePlaceholder":558},[521,2812,2813,2815],{"class":523,"line":644},[521,2814,2417],{"class":527},[521,2816,1227],{"class":531},[521,2818,2819,2821,2823,2825,2827,2829,2831,2833,2835,2837,2839,2841,2843,2845,2847],{"class":523,"line":890},[521,2820,2424],{"class":527},[521,2822,2427],{"class":570},[521,2824,573],{"class":612},[521,2826,576],{"class":531},[521,2828,1133],{"class":548},[521,2830,576],{"class":531},[521,2832,584],{"class":531},[521,2834,532],{"class":531},[521,2836,1112],{"class":612},[521,2838,616],{"class":531},[521,2840,545],{"class":531},[521,2842,1119],{"class":548},[521,2844,576],{"class":531},[521,2846,539],{"class":531},[521,2848,594],{"class":612},[521,2850,2851,2854,2856,2858,2860,2862,2864,2866,2868,2870,2872,2874,2877,2879,2881,2883,2885,2887],{"class":523,"line":895},[521,2852,2853],{"class":535},"    log",[521,2855,567],{"class":531},[521,2857,433],{"class":570},[521,2859,573],{"class":612},[521,2861,609],{"class":531},[521,2863,613],{"class":612},[521,2865,616],{"class":531},[521,2867,545],{"class":531},[521,2869,2793],{"class":548},[521,2871,576],{"class":531},[521,2873,584],{"class":531},[521,2875,2876],{"class":612}," status",[521,2878,616],{"class":531},[521,2880,545],{"class":531},[521,2882,1496],{"class":548},[521,2884,576],{"class":531},[521,2886,539],{"class":531},[521,2888,594],{"class":612},[521,2890,2891,2893,2895,2897,2899,2901],{"class":523,"line":931},[521,2892,2467],{"class":531},[521,2894,2470],{"class":527},[521,2896,1214],{"class":612},[521,2898,2475],{"class":535},[521,2900,2478],{"class":612},[521,2902,1608],{"class":531},[521,2904,2905,2907,2909,2911,2913,2915,2917,2919,2921,2923,2925,2927,2929,2931,2933,2936,2938,2940],{"class":523,"line":963},[521,2906,2853],{"class":535},[521,2908,567],{"class":531},[521,2910,604],{"class":570},[521,2912,573],{"class":612},[521,2914,609],{"class":531},[521,2916,613],{"class":612},[521,2918,616],{"class":531},[521,2920,545],{"class":531},[521,2922,2793],{"class":548},[521,2924,576],{"class":531},[521,2926,584],{"class":531},[521,2928,628],{"class":612},[521,2930,616],{"class":531},[521,2932,545],{"class":531},[521,2934,2935],{"class":548},"failed",[521,2937,576],{"class":531},[521,2939,539],{"class":531},[521,2941,594],{"class":612},[521,2943,2944],{"class":523,"line":1364},[521,2945,2236],{"class":531},[521,2947,2948],{"class":523,"line":1392},[521,2949,2241],{"class":531},[521,2951,2952,2955,2957],{"class":523,"line":1397},[521,2953,2954],{"class":531},"\u003C\u002F",[521,2956,2746],{"class":612},[521,2958,2764],{"class":531},[511,2960,2963],{"className":513,"code":2961,"filename":2962,"language":516,"meta":517,"style":517},"export function useAnalytics() {\n  function trackEvent(event: string, data?: Record\u003Cstring, unknown>) {\n    log.info('analytics', `Event: ${event}`)\n    if (data) {\n      log.debug({ event, ...data })\n    }\n  }\n\n  return { trackEvent }\n}\n","composables\u002FuseAnalytics.ts",[441,2964,2965,2978,3021,3054,3066,3094,3098,3102,3106,3116],{"__ignoreMap":517},[521,2966,2967,2969,2971,2974,2976],{"class":523,"line":524},[521,2968,1200],{"class":527},[521,2970,2395],{"class":844},[521,2972,2973],{"class":570}," useAnalytics",[521,2975,2776],{"class":531},[521,2977,1227],{"class":531},[521,2979,2980,2983,2986,2988,2990,2992,2995,2997,3000,3003,3006,3008,3011,3013,3016,3019],{"class":523,"line":555},[521,2981,2982],{"class":844},"  function",[521,2984,2985],{"class":570}," trackEvent",[521,2987,573],{"class":531},[521,2989,1218],{"class":1217},[521,2991,616],{"class":531},[521,2993,2994],{"class":684}," string",[521,2996,584],{"class":531},[521,2998,2999],{"class":1217}," data",[521,3001,3002],{"class":531},"?:",[521,3004,3005],{"class":684}," Record",[521,3007,2743],{"class":531},[521,3009,3010],{"class":684},"string",[521,3012,584],{"class":531},[521,3014,3015],{"class":684}," unknown",[521,3017,3018],{"class":531},">)",[521,3020,1227],{"class":531},[521,3022,3023,3025,3027,3029,3031,3033,3036,3038,3040,3043,3046,3048,3050,3052],{"class":523,"line":562},[521,3024,2853],{"class":535},[521,3026,567],{"class":531},[521,3028,433],{"class":570},[521,3030,573],{"class":612},[521,3032,576],{"class":531},[521,3034,3035],{"class":548},"analytics",[521,3037,576],{"class":531},[521,3039,584],{"class":531},[521,3041,3042],{"class":531}," `",[521,3044,3045],{"class":548},"Event: ",[521,3047,2691],{"class":531},[521,3049,1218],{"class":535},[521,3051,2700],{"class":531},[521,3053,594],{"class":612},[521,3055,3056,3058,3060,3062,3064],{"class":523,"line":597},[521,3057,2658],{"class":527},[521,3059,1214],{"class":612},[521,3061,2168],{"class":535},[521,3063,2478],{"class":612},[521,3065,1608],{"class":531},[521,3067,3068,3071,3073,3076,3078,3080,3083,3085,3088,3090,3092],{"class":523,"line":644},[521,3069,3070],{"class":535},"      log",[521,3072,567],{"class":531},[521,3074,3075],{"class":570},"debug",[521,3077,573],{"class":612},[521,3079,609],{"class":531},[521,3081,3082],{"class":535}," event",[521,3084,584],{"class":531},[521,3086,3087],{"class":531}," ...",[521,3089,2168],{"class":535},[521,3091,539],{"class":531},[521,3093,594],{"class":612},[521,3095,3096],{"class":523,"line":890},[521,3097,2708],{"class":531},[521,3099,3100],{"class":523,"line":895},[521,3101,2236],{"class":531},[521,3103,3104],{"class":523,"line":931},[521,3105,559],{"emptyLinePlaceholder":558},[521,3107,3108,3110,3112,3114],{"class":523,"line":963},[521,3109,1400],{"class":527},[521,3111,532],{"class":531},[521,3113,2985],{"class":535},[521,3115,1426],{"class":531},[521,3117,3118],{"class":523,"line":1364},[521,3119,2241],{"class":531},[431,3121,3122,3123,3125],{"color":746,"icon":747},"See ",[489,3124,66],{"href":67}," for transport configuration, identity context, and browser drain setup.",[500,3127,3129],{"id":3128},"next-steps","Next Steps",[464,3131,3132,3138,3143,3148,3153],{},[467,3133,3134,3137],{},[489,3135,3136],{"href":42},"Logging Overview",": Understand all three logging modes",[467,3139,3140,3142],{},[489,3141,51],{"href":52},": Learn how to design effective wide events",[467,3144,3145,3147],{},[489,3146,180],{"href":181},": Add compile-time type safety to your wide events",[467,3149,3150,3152],{},[489,3151,56],{"href":57},": Master error handling with evlog",[467,3154,3155,3157],{},[489,3156,185],{"href":186},": Security guidelines and production tips",[3159,3160,3161],"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 .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}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}",{"title":517,"searchDepth":555,"depth":555,"links":3163},[3164,3165,3166,3170,3174,3175],{"id":502,"depth":555,"text":503},{"id":754,"depth":555,"text":755},{"id":1156,"depth":555,"text":1157,"children":3167},[3168,3169],{"id":1507,"depth":562,"text":1508},{"id":1574,"depth":562,"text":1575},{"id":1982,"depth":555,"text":1983,"children":3171},[3172,3173],{"id":2244,"depth":562,"text":2245},{"id":2350,"depth":562,"text":2351},{"id":2721,"depth":555,"text":2722},{"id":3128,"depth":555,"text":3129},"Get up and running with evlog in minutes. Learn the log API, createLogger for wide events, useLogger for requests, and structured errors.","md",[3179,3181],{"label":3136,"icon":44,"to":42,"color":746,"variant":3180},"subtle",{"label":56,"icon":59,"to":57,"color":746,"variant":3180},{},{"icon":23},{"title":20,"description":3176},"vK8QY41lkdf_r_u1gFwaQjtSNA9NpR7FKRlqJRQwSMg",[3187,3189],{"title":15,"path":16,"stem":17,"description":3188,"icon":18,"children":-1},"Install evlog in your TypeScript project. Supports Nuxt, Next.js, SvelteKit, Hono, Express, Fastify, Elysia, NestJS, and standalone scripts.",{"title":25,"path":26,"stem":27,"description":3190,"icon":28,"children":-1},"AI-assisted code review and evlog adoption using Agent Skills. Let AI review your logging patterns and guide migration to wide events.",1778330165514]