[{"data":1,"prerenderedAt":578},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-installation":292,"-getting-started-installation-surround":573},[4,30,65,110,198,262,278],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Getting Started","\u002Fgetting-started","1.getting-started",[9,14,19,24],{"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",false,{"title":31,"path":32,"stem":33,"children":34,"page":29},"Logging","\u002Flogging","2.logging",[35,40,45,50,55,60],{"title":36,"path":37,"stem":38,"icon":39},"Overview","\u002Flogging\u002Foverview","2.logging\u002F0.overview","i-lucide-list",{"title":41,"path":42,"stem":43,"icon":44},"Simple Logging","\u002Flogging\u002Fsimple-logging","2.logging\u002F1.simple-logging","i-lucide-terminal",{"title":46,"path":47,"stem":48,"icon":49},"Wide Events","\u002Flogging\u002Fwide-events","2.logging\u002F2.wide-events","i-lucide-layers",{"title":51,"path":52,"stem":53,"icon":54},"Structured Errors","\u002Flogging\u002Fstructured-errors","2.logging\u002F3.structured-errors","i-lucide-shield-alert",{"title":56,"path":57,"stem":58,"icon":59},"Client Logging","\u002Flogging\u002Fclient-logging","2.logging\u002F4.client-logging","i-lucide-monitor",{"title":61,"path":62,"stem":63,"icon":64},"AI SDK Integration","\u002Flogging\u002Fai-sdk","2.logging\u002F5.ai-sdk","i-simple-icons-vercel",{"title":66,"path":67,"stem":68,"children":69,"page":29},"Core Concepts","\u002Fcore-concepts","3.core-concepts",[70,75,80,85,90,95,100,105],{"title":71,"path":72,"stem":73,"icon":74},"Lifecycle","\u002Fcore-concepts\u002Flifecycle","3.core-concepts\u002F0.lifecycle","i-lucide-arrow-right-left",{"title":76,"path":77,"stem":78,"icon":79},"Configuration","\u002Fcore-concepts\u002Fconfiguration","3.core-concepts\u002F1.configuration","i-lucide-settings",{"title":81,"path":82,"stem":83,"icon":84},"Sampling","\u002Fcore-concepts\u002Fsampling","3.core-concepts\u002F2.sampling","i-lucide-filter",{"title":86,"path":87,"stem":88,"icon":89},"Typed Fields","\u002Fcore-concepts\u002Ftyped-fields","3.core-concepts\u002F3.typed-fields","i-simple-icons-typescript",{"title":91,"path":92,"stem":93,"icon":94},"Best Practices","\u002Fcore-concepts\u002Fbest-practices","3.core-concepts\u002F4.best-practices","i-lucide-shield-check",{"title":96,"path":97,"stem":98,"icon":99},"Performance","\u002Fcore-concepts\u002Fperformance","3.core-concepts\u002F5.performance","i-lucide-gauge",{"title":101,"path":102,"stem":103,"icon":104},"Vite Plugin","\u002Fcore-concepts\u002Fvite-plugin","3.core-concepts\u002F6.vite-plugin","i-custom-vite",{"title":106,"path":107,"stem":108,"icon":109},"Auto-Redaction","\u002Fcore-concepts\u002Fredaction","3.core-concepts\u002F7.redaction","i-lucide-eye-off",{"title":111,"path":112,"stem":113,"children":114,"page":29},"Frameworks","\u002Fframeworks","4.frameworks",[115,119,124,129,134,139,144,149,154,159,164,169,174,179,183,188,193],{"title":36,"path":116,"stem":117,"icon":118},"\u002Fframeworks\u002Foverview","4.frameworks\u002F00.overview","i-lucide-layout-grid",{"title":120,"path":121,"stem":122,"icon":123},"Nuxt","\u002Fframeworks\u002Fnuxt","4.frameworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":125,"path":126,"stem":127,"icon":128},"Next.js","\u002Fframeworks\u002Fnextjs","4.frameworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":130,"path":131,"stem":132,"icon":133},"SvelteKit","\u002Fframeworks\u002Fsveltekit","4.frameworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":135,"path":136,"stem":137,"icon":138},"Nitro","\u002Fframeworks\u002Fnitro","4.frameworks\u002F04.nitro","i-custom-nitro",{"title":140,"path":141,"stem":142,"icon":143},"TanStack Start","\u002Fframeworks\u002Ftanstack-start","4.frameworks\u002F05.tanstack-start","i-custom-tanstack",{"title":145,"path":146,"stem":147,"icon":148},"NestJS","\u002Fframeworks\u002Fnestjs","4.frameworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":150,"path":151,"stem":152,"icon":153},"Express","\u002Fframeworks\u002Fexpress","4.frameworks\u002F07.express","i-simple-icons-express",{"title":155,"path":156,"stem":157,"icon":158},"Hono","\u002Fframeworks\u002Fhono","4.frameworks\u002F08.hono","i-simple-icons-hono",{"title":160,"path":161,"stem":162,"icon":163},"Fastify","\u002Fframeworks\u002Ffastify","4.frameworks\u002F09.fastify","i-simple-icons-fastify",{"title":165,"path":166,"stem":167,"icon":168},"Elysia","\u002Fframeworks\u002Felysia","4.frameworks\u002F10.elysia","i-custom-elysia",{"title":170,"path":171,"stem":172,"icon":173},"React Router","\u002Fframeworks\u002Freact-router","4.frameworks\u002F11.react-router","i-custom-reactrouter",{"title":175,"path":176,"stem":177,"icon":178},"Cloudflare Workers","\u002Fframeworks\u002Fcloudflare-workers","4.frameworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":180,"path":181,"stem":182,"icon":89},"Standalone","\u002Fframeworks\u002Fstandalone","4.frameworks\u002F13.standalone",{"title":184,"path":185,"stem":186,"icon":187},"Astro","\u002Fframeworks\u002Fastro","4.frameworks\u002F14.astro","i-simple-icons-astro",{"title":189,"path":190,"stem":191,"icon":192},"Custom Integration","\u002Fframeworks\u002Fcustom-integration","4.frameworks\u002F15.custom-integration","i-lucide-puzzle",{"title":194,"path":195,"stem":196,"icon":197},"AWS Lambda","\u002Fframeworks\u002Faws-lambda","4.frameworks\u002F16.aws-lambda","i-custom-lambda",{"title":199,"path":200,"stem":201,"children":202,"page":29},"Adapters","\u002Fadapters","5.adapters",[203,207,212,217,222,227,232,237,242,247,252,257],{"title":36,"path":204,"stem":205,"icon":206},"\u002Fadapters\u002Foverview","5.adapters\u002F1.overview","i-custom-plug",{"title":208,"path":209,"stem":210,"icon":211},"Custom Adapters","\u002Fadapters\u002Fcustom","5.adapters\u002F10.custom","i-lucide-code",{"title":213,"path":214,"stem":215,"icon":216},"Pipeline","\u002Fadapters\u002Fpipeline","5.adapters\u002F11.pipeline","i-lucide-workflow",{"title":218,"path":219,"stem":220,"icon":221},"HTTP","\u002Fadapters\u002Fhttp","5.adapters\u002F12.http","i-lucide-globe",{"title":223,"path":224,"stem":225,"icon":226},"Axiom","\u002Fadapters\u002Faxiom","5.adapters\u002F2.axiom","i-custom-axiom",{"title":228,"path":229,"stem":230,"icon":231},"OTLP","\u002Fadapters\u002Fotlp","5.adapters\u002F3.otlp","i-simple-icons-opentelemetry",{"title":233,"path":234,"stem":235,"icon":236},"PostHog","\u002Fadapters\u002Fposthog","5.adapters\u002F4.posthog","i-simple-icons-posthog",{"title":238,"path":239,"stem":240,"icon":241},"Sentry","\u002Fadapters\u002Fsentry","5.adapters\u002F5.sentry","i-simple-icons-sentry",{"title":243,"path":244,"stem":245,"icon":246},"Better Stack","\u002Fadapters\u002Fbetter-stack","5.adapters\u002F6.better-stack","i-simple-icons-betterstack",{"title":248,"path":249,"stem":250,"icon":251},"File System","\u002Fadapters\u002Ffs","5.adapters\u002F7.fs","i-lucide-hard-drive",{"title":253,"path":254,"stem":255,"icon":256},"Datadog","\u002Fadapters\u002Fdatadog","5.adapters\u002F8.datadog","i-simple-icons-datadog",{"title":258,"path":259,"stem":260,"icon":261},"HyperDX","\u002Fadapters\u002Fhyperdx","5.adapters\u002F9.hyperdx","i-custom-hyperdx",{"title":263,"path":264,"stem":265,"children":266,"page":29},"Enrichers","\u002Fenrichers","6.enrichers",[267,270,274],{"title":36,"path":268,"stem":269,"icon":28},"\u002Fenrichers\u002Foverview","6.enrichers\u002F1.overview",{"title":271,"path":272,"stem":273,"icon":192},"Built-in","\u002Fenrichers\u002Fbuilt-in","6.enrichers\u002F2.built-in",{"title":275,"path":276,"stem":277,"icon":211},"Custom","\u002Fenrichers\u002Fcustom","6.enrichers\u002F3.custom",{"title":279,"path":280,"stem":281,"children":282,"page":29},"NuxtHub","\u002Fnuxthub","7.nuxthub",[283,287],{"title":36,"path":284,"stem":285,"icon":286},"\u002Fnuxthub\u002Foverview","7.nuxthub\u002F1.overview","i-lucide-database",{"title":288,"path":289,"stem":290,"icon":291},"Retention","\u002Fnuxthub\u002Fretention","7.nuxthub\u002F2.retention","i-lucide-clock",{"id":293,"title":294,"body":295,"description":564,"extension":565,"links":566,"meta":569,"navigation":570,"path":16,"seo":571,"stem":17,"__hash__":572},"docs\u002F1.getting-started\u002F2.installation.md","Install evlog",{"type":296,"value":297,"toc":554},"minimark",[298,302,307,379,384,387,406,413,417,420,499,515,519,522,527,531,550],[299,300,301],"p",{},"evlog supports Nuxt, Next.js, SvelteKit, Nitro, NestJS, and any TypeScript server framework.",[303,304,306],"h2",{"id":305},"install","Install",[308,309,310,336,351,365],"code-group",{},[311,312,318],"pre",{"className":313,"code":314,"filename":315,"language":316,"meta":317,"style":317},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add evlog\n","pnpm","bash","",[319,320,321],"code",{"__ignoreMap":317},[322,323,326,329,333],"span",{"class":324,"line":325},"line",1,[322,327,315],{"class":328},"sBMFI",[322,330,332],{"class":331},"sfazB"," add",[322,334,335],{"class":331}," evlog\n",[311,337,340],{"className":313,"code":338,"filename":339,"language":316,"meta":317,"style":317},"npm install evlog\n","npm",[319,341,342],{"__ignoreMap":317},[322,343,344,346,349],{"class":324,"line":325},[322,345,339],{"class":328},[322,347,348],{"class":331}," install",[322,350,335],{"class":331},[311,352,355],{"className":313,"code":353,"filename":354,"language":316,"meta":317,"style":317},"yarn add evlog\n","yarn",[319,356,357],{"__ignoreMap":317},[322,358,359,361,363],{"class":324,"line":325},[322,360,354],{"class":328},[322,362,332],{"class":331},[322,364,335],{"class":331},[311,366,369],{"className":313,"code":367,"filename":368,"language":316,"meta":317,"style":317},"bun add evlog\n","bun",[319,370,371],{"__ignoreMap":317},[322,372,373,375,377],{"class":324,"line":325},[322,374,368],{"class":328},[322,376,332],{"class":331},[322,378,335],{"class":331},[380,381,383],"h3",{"id":382},"using-agent-skills","Using Agent Skills",[299,385,386],{},"If you use an AI assistant (Claude Code, Cursor, etc.), install the evlog skill for guided setup and code review:",[311,388,391],{"className":313,"code":389,"filename":390,"language":316,"meta":317,"style":317},"npx skills add https:\u002F\u002Fwww.evlog.dev\n","Terminal",[319,392,393],{"__ignoreMap":317},[322,394,395,398,401,403],{"class":324,"line":325},[322,396,397],{"class":328},"npx",[322,399,400],{"class":331}," skills",[322,402,332],{"class":331},[322,404,405],{"class":331}," https:\u002F\u002Fwww.evlog.dev\n",[299,407,408,409,412],{},"Your AI assistant can then help you set up evlog, review your logging patterns, and migrate existing code to wide events. See ",[410,411,25],"a",{"href":26}," for details.",[303,414,416],{"id":415},"choose-your-framework","Choose Your Framework",[299,418,419],{},"After installing the package, follow the setup guide for your framework:",[421,422,423,440,450,456,459,462,468,474,479,484,490,496],"card-group",{},[424,425,427,428,431,432,435,436,439],"card",{"color":426,"icon":123,"title":120,"to":121},"neutral","Module with auto-imported ",[319,429,430],{},"useLogger",", ",[319,433,434],{},"createError",", and ",[319,437,438],{},"parseError",".",[424,441,442,445,446,449],{"color":426,"icon":128,"title":125,"to":126},[319,443,444],{},"createEvlog()"," factory with ",[319,447,448],{},"withEvlog()"," handler wrapper.",[424,451,452,453,439],{"color":426,"icon":133,"title":130,"to":131},"Handle and handleError hooks with ",[319,454,455],{},"event.locals.log",[424,457,458],{"color":426,"icon":138,"title":135,"to":136},"Module for Nitro v2 and v3 with plugin-based hooks.",[424,460,461],{"color":426,"icon":143,"title":140,"to":141},"Uses Nitro v3 module with async context.",[424,463,464,465,439],{"color":426,"icon":173,"title":170,"to":171},"Middleware with ",[319,466,467],{},"context.get(loggerContext)",[424,469,470,473],{"color":426,"icon":148,"title":145,"to":146},[319,471,472],{},"EvlogModule.forRoot()"," with global middleware.",[424,475,464,476,439],{"color":426,"icon":153,"title":150,"to":151},[319,477,478],{},"req.log",[424,480,464,481,439],{"color":426,"icon":158,"title":155,"to":156},[319,482,483],{},"c.get('log')",[424,485,486,487,439],{"color":426,"icon":163,"title":160,"to":161},"Plugin with ",[319,488,489],{},"request.log",[424,491,486,492,495],{"color":426,"icon":168,"title":165,"to":166},[319,493,494],{},"log"," in route context.",[424,497,498],{"color":426,"icon":178,"title":175,"to":176},"Factory for request-scoped loggers.",[500,501,503,504,507,508,431,511,435,513,439],"callout",{"color":426,"icon":502},"i-lucide-arrow-right","See the full ",[410,505,506],{"href":116},"Framework Integrations"," page for a comparison table and all available integrations including ",[410,509,510],{"href":181},"Standalone TypeScript",[410,512,184],{"href":185},[410,514,189],{"href":190},[303,516,518],{"id":517},"typescript-configuration","TypeScript Configuration",[299,520,521],{},"evlog ships with full TypeScript type definitions. No additional configuration is required.",[500,523,526],{"color":524,"icon":525},"success","i-lucide-check","evlog requires TypeScript 5.0 or higher for optimal type inference.",[303,528,530],{"id":529},"next-steps","Next Steps",[532,533,534,540,545],"ul",{},[535,536,537,539],"li",{},[410,538,20],{"href":21}," - Learn the core concepts and start using evlog",[535,541,542,544],{},[410,543,46],{"href":47}," - Understand the wide event pattern",[535,546,547,549],{},[410,548,199],{"href":204}," - Send logs to Axiom, PostHog, Sentry, and more",[551,552,553],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":317,"searchDepth":555,"depth":555,"links":556},2,[557,561,562,563],{"id":305,"depth":555,"text":306,"children":558},[559],{"id":382,"depth":560,"text":383},3,{"id":415,"depth":555,"text":416},{"id":517,"depth":555,"text":518},{"id":529,"depth":555,"text":530},"Install evlog in your TypeScript project. Supports Nuxt, Next.js, SvelteKit, Hono, Express, Fastify, Elysia, NestJS, and standalone scripts.","md",[567],{"label":111,"icon":118,"to":116,"color":426,"variant":568},"subtle",{},{"title":15,"icon":18},{"title":294,"description":564},"58xRahbsDWQceUkodLt05_caoFNT-6OXph5ffXGNNkY",[574,576],{"title":10,"path":11,"stem":12,"description":575,"icon":13,"children":-1},"A structured logging library for TypeScript. Simple logging, wide events, and structured errors, from quick one-liners to comprehensive request-scoped events.",{"title":20,"path":21,"stem":22,"description":577,"icon":23,"children":-1},"Get up and running with evlog in minutes. Learn the log API, createLogger for wide events, useLogger for requests, and structured errors.",1776073771123]