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