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