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