[{"data":1,"prerenderedAt":519},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-installation":238,"-getting-started-installation-surround":514},[4,30,110,154,208,224],{"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,149],{"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,"icon":153},"Configuration","\u002Fcore-concepts\u002Fconfiguration","3.core-concepts\u002F7.configuration","i-lucide-settings",{"title":155,"path":156,"stem":157,"children":158,"page":29},"Adapters","\u002Fadapters","4.adapters",[159,163,168,173,178,183,188,193,198,203],{"title":36,"path":160,"stem":161,"icon":162},"\u002Fadapters\u002Foverview","4.adapters\u002F1.overview","i-custom-plug",{"title":164,"path":165,"stem":166,"icon":167},"Browser","\u002Fadapters\u002Fbrowser","4.adapters\u002F10.browser","i-lucide-globe",{"title":169,"path":170,"stem":171,"icon":172},"Axiom","\u002Fadapters\u002Faxiom","4.adapters\u002F2.axiom","i-custom-axiom",{"title":174,"path":175,"stem":176,"icon":177},"OTLP","\u002Fadapters\u002Fotlp","4.adapters\u002F3.otlp","i-simple-icons-opentelemetry",{"title":179,"path":180,"stem":181,"icon":182},"PostHog","\u002Fadapters\u002Fposthog","4.adapters\u002F4.posthog","i-simple-icons-posthog",{"title":184,"path":185,"stem":186,"icon":187},"Sentry","\u002Fadapters\u002Fsentry","4.adapters\u002F5.sentry","i-simple-icons-sentry",{"title":189,"path":190,"stem":191,"icon":192},"Better Stack","\u002Fadapters\u002Fbetter-stack","4.adapters\u002F6.better-stack","i-simple-icons-betterstack",{"title":194,"path":195,"stem":196,"icon":197},"File System","\u002Fadapters\u002Ffs","4.adapters\u002F7.fs","i-lucide-hard-drive",{"title":199,"path":200,"stem":201,"icon":202},"Custom Adapters","\u002Fadapters\u002Fcustom","4.adapters\u002F8.custom","i-lucide-code",{"title":204,"path":205,"stem":206,"icon":207},"Pipeline","\u002Fadapters\u002Fpipeline","4.adapters\u002F9.pipeline","i-lucide-workflow",{"title":209,"path":210,"stem":211,"children":212,"page":29},"Enrichers","\u002Fenrichers","5.enrichers",[213,216,220],{"title":36,"path":214,"stem":215,"icon":28},"\u002Fenrichers\u002Foverview","5.enrichers\u002F1.overview",{"title":217,"path":218,"stem":219,"icon":109},"Built-in","\u002Fenrichers\u002Fbuilt-in","5.enrichers\u002F2.built-in",{"title":221,"path":222,"stem":223,"icon":202},"Custom","\u002Fenrichers\u002Fcustom","5.enrichers\u002F3.custom",{"title":225,"path":226,"stem":227,"children":228,"page":29},"NuxtHub","\u002Fnuxthub","6.nuxthub",[229,233],{"title":36,"path":230,"stem":231,"icon":232},"\u002Fnuxthub\u002Foverview","6.nuxthub\u002F1.overview","i-lucide-database",{"title":234,"path":235,"stem":236,"icon":237},"Retention","\u002Fnuxthub\u002Fretention","6.nuxthub\u002F2.retention","i-lucide-clock",{"id":239,"title":240,"body":241,"description":505,"extension":506,"links":507,"meta":510,"navigation":511,"path":16,"seo":512,"stem":17,"__hash__":513},"docs\u002F1.getting-started\u002F2.installation.md","Install evlog",{"type":242,"value":243,"toc":495},"minimark",[244,248,253,325,330,333,352,359,363,366,440,456,460,463,468,472,491],[245,246,247],"p",{},"evlog supports Nuxt, Next.js, SvelteKit, Nitro, NestJS, and any TypeScript server framework.",[249,250,252],"h2",{"id":251},"install","Install",[254,255,256,282,297,311],"code-group",{},[257,258,264],"pre",{"className":259,"code":260,"filename":261,"language":262,"meta":263,"style":263},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add evlog\n","pnpm","bash","",[265,266,267],"code",{"__ignoreMap":263},[268,269,272,275,279],"span",{"class":270,"line":271},"line",1,[268,273,261],{"class":274},"sBMFI",[268,276,278],{"class":277},"sfazB"," add",[268,280,281],{"class":277}," evlog\n",[257,283,286],{"className":259,"code":284,"filename":285,"language":262,"meta":263,"style":263},"npm install evlog\n","npm",[265,287,288],{"__ignoreMap":263},[268,289,290,292,295],{"class":270,"line":271},[268,291,285],{"class":274},[268,293,294],{"class":277}," install",[268,296,281],{"class":277},[257,298,301],{"className":259,"code":299,"filename":300,"language":262,"meta":263,"style":263},"yarn add evlog\n","yarn",[265,302,303],{"__ignoreMap":263},[268,304,305,307,309],{"class":270,"line":271},[268,306,300],{"class":274},[268,308,278],{"class":277},[268,310,281],{"class":277},[257,312,315],{"className":259,"code":313,"filename":314,"language":262,"meta":263,"style":263},"bun add evlog\n","bun",[265,316,317],{"__ignoreMap":263},[268,318,319,321,323],{"class":270,"line":271},[268,320,314],{"class":274},[268,322,278],{"class":277},[268,324,281],{"class":277},[326,327,329],"h3",{"id":328},"using-agent-skills","Using Agent Skills",[245,331,332],{},"If you use an AI assistant (Claude Code, Cursor, etc.), install the evlog skill for guided setup and code review:",[257,334,337],{"className":259,"code":335,"filename":336,"language":262,"meta":263,"style":263},"npx skills add hugorcd\u002Fevlog\n","Terminal",[265,338,339],{"__ignoreMap":263},[268,340,341,344,347,349],{"class":270,"line":271},[268,342,343],{"class":274},"npx",[268,345,346],{"class":277}," skills",[268,348,278],{"class":277},[268,350,351],{"class":277}," hugorcd\u002Fevlog\n",[245,353,354,355,358],{},"Your AI assistant can then help you set up evlog, review your logging patterns, and migrate existing code to wide events. See ",[356,357,25],"a",{"href":26}," for details.",[249,360,362],{"id":361},"choose-your-framework","Choose Your Framework",[245,364,365],{},"After installing the package, follow the setup guide for your framework:",[367,368,369,386,396,402,405,408,414,420,425,431,437],"card-group",{},[370,371,373,374,377,378,381,382,385],"card",{"color":372,"icon":44,"title":41,"to":42},"neutral","Module with auto-imported ",[265,375,376],{},"useLogger",", ",[265,379,380],{},"createError",", and ",[265,383,384],{},"parseError",".",[370,387,388,391,392,395],{"color":372,"icon":49,"title":46,"to":47},[265,389,390],{},"createEvlog()"," factory with ",[265,393,394],{},"withEvlog()"," handler wrapper.",[370,397,398,399,385],{"color":372,"icon":54,"title":51,"to":52},"Handle and handleError hooks with ",[265,400,401],{},"event.locals.log",[370,403,404],{"color":372,"icon":59,"title":56,"to":57},"Module for Nitro v2 and v3 with plugin-based hooks.",[370,406,407],{"color":372,"icon":64,"title":61,"to":62},"Uses Nitro v3 module with async context.",[370,409,410,413],{"color":372,"icon":69,"title":66,"to":67},[265,411,412],{},"EvlogModule.forRoot()"," with global middleware.",[370,415,416,417,385],{"color":372,"icon":74,"title":71,"to":72},"Middleware with ",[265,418,419],{},"req.log",[370,421,416,422,385],{"color":372,"icon":79,"title":76,"to":77},[265,423,424],{},"c.get('log')",[370,426,427,428,385],{"color":372,"icon":84,"title":81,"to":82},"Plugin with ",[265,429,430],{},"request.log",[370,432,427,433,436],{"color":372,"icon":89,"title":86,"to":87},[265,434,435],{},"log"," in route context.",[370,438,439],{"color":372,"icon":94,"title":91,"to":92},"Factory for request-scoped loggers.",[441,442,444,445,448,449,377,452,381,454,385],"callout",{"color":372,"icon":443},"i-lucide-arrow-right","See the full ",[356,446,447],{"href":37},"Framework Integrations"," page for a comparison table and all available integrations including ",[356,450,451],{"href":97},"Standalone TypeScript",[356,453,101],{"href":102},[356,455,106],{"href":107},[249,457,459],{"id":458},"typescript-configuration","TypeScript Configuration",[245,461,462],{},"evlog ships with full TypeScript type definitions. No additional configuration is required.",[441,464,467],{"color":465,"icon":466},"success","i-lucide-check","evlog requires TypeScript 5.0 or higher for optimal type inference.",[249,469,471],{"id":470},"next-steps","Next Steps",[473,474,475,481,486],"ul",{},[476,477,478,480],"li",{},[356,479,20],{"href":21}," - Learn the core concepts and start using evlog",[476,482,483,485],{},[356,484,121],{"href":122}," - Understand the wide event pattern",[476,487,488,490],{},[356,489,155],{"href":160}," - Send logs to Axiom, PostHog, Sentry, and more",[492,493,494],"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":263,"searchDepth":496,"depth":496,"links":497},2,[498,502,503,504],{"id":251,"depth":496,"text":252,"children":499},[500],{"id":328,"depth":501,"text":329},3,{"id":361,"depth":496,"text":362},{"id":458,"depth":496,"text":459},{"id":470,"depth":496,"text":471},"Install evlog in your TypeScript project.","md",[508],{"label":31,"icon":39,"to":37,"color":372,"variant":509},"subtle",{},{"title":15,"icon":18},{"title":240,"description":505},"LE2pyxwIHZh9ZRO9lZtaeY8GGW-mhlnOFQmJvjth4hE",[515,517],{"title":10,"path":11,"stem":12,"description":516,"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":518,"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.",1773504115259]