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