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