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