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