[{"data":1,"prerenderedAt":877},["ShallowReactive",2],{"navigation_docs":3,"-frameworks-overview":282,"-frameworks-overview-surround":872},[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":865,"extension":866,"links":867,"meta":868,"navigation":869,"path":111,"seo":870,"stem":112,"__hash__":871},"docs\u002F4.frameworks\u002F00.overview.md","Framework Integrations",{"type":286,"value":287,"toc":857},"minimark",[288,304,308,677,681,737,741,780,803,806,816,851],[289,290,291,292,296,297,296,300,303],"p",{},"evlog provides native integrations for every major TypeScript framework. The same core API (",[293,294,295],"code",{},"log.set()",", ",[293,298,299],{},"createError()",[293,301,302],{},"parseError()",") works identically everywhere. Only the setup differs.",[305,306,36],"h2",{"id":307},"overview",[309,310,311,333],"table",{},[312,313,314],"thead",{},[315,316,317,321,324,327,330],"tr",{},[318,319,320],"th",{},"Framework",[318,322,323],{},"Import",[318,325,326],{},"Type",[318,328,329],{},"Logger Access",[318,331,332],{},"Status",[334,335,336,360,381,405,424,444,462,485,504,526,546,569,592,612,636,655],"tbody",{},[315,337,338,344,349,352,357],{},[339,340,341],"td",{},[342,343,115],"a",{"href":116},[339,345,346],{},[293,347,348],{},"evlog\u002Fnuxt",[339,350,351],{},"Module",[339,353,354],{},[293,355,356],{},"useLogger(event)",[339,358,359],{},"Stable",[315,361,362,366,371,374,379],{},[339,363,364],{},[342,365,120],{"href":121},[339,367,368],{},[293,369,370],{},"evlog\u002Fnext",[339,372,373],{},"Factory",[339,375,376],{},[293,377,378],{},"useLogger()",[339,380,359],{},[315,382,383,387,392,395,403],{},[339,384,385],{},[342,386,125],{"href":126},[339,388,389],{},[293,390,391],{},"evlog\u002Fsveltekit",[339,393,394],{},"Hooks",[339,396,397,400,401],{},[293,398,399],{},"event.locals.log"," \u002F ",[293,402,378],{},[339,404,359],{},[315,406,407,411,416,418,422],{},[339,408,409],{},[342,410,130],{"href":131},[339,412,413],{},[293,414,415],{},"evlog\u002Fnitro",[339,417,351],{},[339,419,420],{},[293,421,356],{},[339,423,359],{},[315,425,426,430,435,437,442],{},[339,427,428],{},[342,429,135],{"href":136},[339,431,432],{},[293,433,434],{},"evlog\u002Fnitro\u002Fv3",[339,436,351],{},[339,438,439],{},[293,440,441],{},"useRequest().context.log",[339,443,359],{},[315,445,446,451,455,457,460],{},[339,447,448],{},[342,449,450],{"href":136},"TanStack Router",[339,452,453],{},[293,454,434],{},[339,456,351],{},[339,458,459],{},"Via TanStack Start (uses Nitro v3)",[339,461,359],{},[315,463,464,468,473,476,483],{},[339,465,466],{},[342,467,165],{"href":166},[339,469,470],{},[293,471,472],{},"evlog\u002Freact-router",[339,474,475],{},"Middleware",[339,477,478,400,481],{},[293,479,480],{},"context.get(loggerContext)",[293,482,378],{},[339,484,359],{},[315,486,487,491,496,498,502],{},[339,488,489],{},[342,490,140],{"href":141},[339,492,493],{},[293,494,495],{},"evlog\u002Fnestjs",[339,497,351],{},[339,499,500],{},[293,501,378],{},[339,503,359],{},[315,505,506,510,515,517,524],{},[339,507,508],{},[342,509,145],{"href":146},[339,511,512],{},[293,513,514],{},"evlog\u002Fexpress",[339,516,475],{},[339,518,519,400,522],{},[293,520,521],{},"req.log",[293,523,378],{},[339,525,359],{},[315,527,528,532,537,539,544],{},[339,529,530],{},[342,531,150],{"href":151},[339,533,534],{},[293,535,536],{},"evlog\u002Fhono",[339,538,475],{},[339,540,541],{},[293,542,543],{},"c.get('log')",[339,545,359],{},[315,547,548,552,557,560,567],{},[339,549,550],{},[342,551,155],{"href":156},[339,553,554],{},[293,555,556],{},"evlog\u002Ffastify",[339,558,559],{},"Plugin",[339,561,562,400,565],{},[293,563,564],{},"request.log",[293,566,378],{},[339,568,359],{},[315,570,571,575,580,582,590],{},[339,572,573],{},[342,574,160],{"href":161},[339,576,577],{},[293,578,579],{},"evlog\u002Felysia",[339,581,559],{},[339,583,584,587,588],{},[293,585,586],{},"log"," (context) \u002F ",[293,589,378],{},[339,591,359],{},[315,593,594,598,603,605,610],{},[339,595,596],{},[342,597,170],{"href":171},[339,599,600],{},[293,601,602],{},"evlog\u002Fworkers",[339,604,373],{},[339,606,607],{},[293,608,609],{},"createWorkersLogger()",[339,611,359],{},[315,613,614,618,623,626,634],{},[339,615,616],{},[342,617,175],{"href":176},[339,619,620],{},[293,621,622],{},"evlog",[339,624,625],{},"Manual",[339,627,628,400,631],{},[293,629,630],{},"createLogger()",[293,632,633],{},"createRequestLogger()",[339,635,359],{},[315,637,638,642,646,648,652],{},[339,639,640],{},[342,641,179],{"href":180},[339,643,644],{},[293,645,622],{},[339,647,625],{},[339,649,650],{},[293,651,633],{},[339,653,654],{},"Guide",[315,656,657,661,666,669,674],{},[339,658,659],{},[342,660,265],{"href":185},[339,662,663],{},[293,664,665],{},"evlog\u002Ftoolkit",[339,667,668],{},"Build your own",[339,670,671],{},[293,672,673],{},"createMiddlewareLogger()",[339,675,676],{},"Beta",[305,678,680],{"id":679},"full-stack-frameworks","Full-Stack Frameworks",[682,683,684,700,710,716,719,722,731],"card-group",{},[685,686,688,689,296,692,695,696,699],"card",{"color":687,"icon":118,"title":115,"to":116},"neutral","Auto-imported ",[293,690,691],{},"useLogger",[293,693,694],{},"createError",", and ",[293,697,698],{},"parseError",". Zero config.",[685,701,702,705,706,709],{"color":687,"icon":123,"title":120,"to":121},[293,703,704],{},"createEvlog()"," factory with ",[293,707,708],{},"withEvlog()"," handler wrapper and client provider.",[685,711,712,713,715],{"color":687,"icon":128,"title":125,"to":126},"Handle and handleError hooks with request-scoped logger on ",[293,714,399],{},".",[685,717,718],{"color":687,"icon":133,"title":130,"to":131},"Module for both Nitro v2 and v3 with plugin-based drain and enrichment hooks.",[685,720,721],{"color":687,"icon":138,"title":135,"to":136},"Uses Nitro v3 module with async context for seamless logging in server functions. Also covers TanStack Router (full-stack mode).",[685,723,724,725,727,728,730],{"color":687,"icon":168,"title":165,"to":166},"Middleware with ",[293,726,480],{}," and ",[293,729,378],{}," for loaders and services.",[685,732,733,736],{"color":687,"icon":143,"title":140,"to":141},[293,734,735],{},"EvlogModule.forRoot()"," with global middleware, exception filter, and async config.",[305,738,740],{"id":739},"server-frameworks","Server Frameworks",[682,742,743,748,757,763,771,774,777],{},[685,744,724,745,747],{"color":687,"icon":148,"title":145,"to":146},[293,746,521],{}," and 4-argument error handler.",[685,749,750,751,753,754,715],{"color":687,"icon":153,"title":150,"to":151},"Middleware with typed ",[293,752,543],{}," via ",[293,755,756],{},"EvlogVariables",[685,758,759,760,762],{"color":687,"icon":158,"title":155,"to":156},"Plugin with ",[293,761,564],{}," that shadows Fastify's built-in pino logger.",[685,764,759,765,767,768,715],{"color":687,"icon":163,"title":160,"to":161},[293,766,586],{}," in route context via Elysia's ",[293,769,770],{},"derive",[685,772,773],{"color":687,"icon":173,"title":170,"to":171},"Factory for creating request-scoped loggers with Cloudflare-specific context.",[685,775,776],{"color":687,"icon":89,"title":175,"to":176},"For scripts, CLI tools, queues, and any TypeScript process.",[685,778,779],{"color":687,"icon":187,"title":184,"to":185},"Build your own middleware with the evlog toolkit API.",[781,782,784,785,296,788,296,791,296,794,296,797,695,800,715],"callout",{"color":783,"icon":13},"info","All frameworks support the same features: ",[342,786,787],{"href":47},"wide events",[342,789,790],{"href":52},"structured errors",[342,792,793],{"href":194},"drain adapters",[342,795,796],{"href":258},"enrichers",[342,798,799],{"href":82},"sampling",[342,801,802],{"href":62},"AI SDK integration",[305,804,101],{"id":805},"vite-plugin",[289,807,808,809,815],{},"For any Vite-based project, the ",[342,810,811,814],{"href":102},[293,812,813],{},"evlog\u002Fvite"," plugin"," adds build-time optimizations:",[817,818,819,831,841],"ul",{},[820,821,822,826,827,830],"li",{},[823,824,825],"strong",{},"Auto-initialization",": no ",[293,828,829],{},"initLogger()"," call needed",[820,832,833,836,837,840],{},[823,834,835],{},"Debug stripping",": ",[293,838,839],{},"log.debug()"," removed from production builds",[820,842,843,846,847,850],{},[823,844,845],{},"Source location",": inject ",[293,848,849],{},"__source: 'file:line'"," into log calls",[289,852,853,854,856],{},"Works with SvelteKit, Hono (via vite-node), and any Vite-powered setup. Nuxt users get these features via the ",[293,855,348],{}," module options.",{"title":858,"searchDepth":859,"depth":859,"links":860},"",2,[861,862,863,864],{"id":307,"depth":859,"text":36},{"id":679,"depth":859,"text":680},{"id":739,"depth":859,"text":740},{"id":805,"depth":859,"text":101},"evlog supports every major TypeScript framework. Choose your stack and get started in minutes.","md",null,{},{"title":36,"icon":113},{"title":284,"description":865},"K9dLd4k2DCEnGj3Rl3LHwNW-2wTo6SalVhaWaNFHXW4",[873,875],{"title":101,"path":102,"stem":103,"description":874,"icon":104,"children":-1},"Build-time optimizations for any Vite-based framework. Auto-init, debug stripping, source location injection, and optional auto-imports.",{"title":115,"path":116,"stem":117,"description":876,"icon":118,"children":-1},"Automatic wide events, structured errors, drain adapters, enrichers, tail sampling, and client transport in Nuxt applications.",1775319203747]