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