[{"data":1,"prerenderedAt":953},["ShallowReactive",2],{"navigation_docs":3,"-build-on-top-framework-integration":427,"-build-on-top-framework-integration-surround":948},[4,35,159,201,289,324,411],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Getting Started","\u002Fgetting-started","1.getting-started",[9,14,19,24,29],{"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",{"title":30,"path":31,"stem":32,"icon":33},"vs Other Loggers","\u002Fgetting-started\u002Fvs-other-loggers","1.getting-started\u002F5.vs-other-loggers","i-lucide-scale",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Logging","\u002Flogging","2.logging",[40,45,50,55,60,65,70,99,127],{"title":41,"path":42,"stem":43,"icon":44},"Overview","\u002Flogging\u002Foverview","2.logging\u002F0.overview","i-lucide-list",{"title":46,"path":47,"stem":48,"icon":49},"Simple Logging","\u002Flogging\u002Fsimple-logging","2.logging\u002F1.simple-logging","i-lucide-terminal",{"title":51,"path":52,"stem":53,"icon":54},"Wide Events","\u002Flogging\u002Fwide-events","2.logging\u002F2.wide-events","i-lucide-layers",{"title":56,"path":57,"stem":58,"icon":59},"Structured Errors","\u002Flogging\u002Fstructured-errors","2.logging\u002F3.structured-errors","i-lucide-shield-alert",{"title":61,"path":62,"stem":63,"icon":64},"Catalogs","\u002Flogging\u002Fcatalogs","2.logging\u002F4.catalogs","i-lucide-book-open",{"title":66,"path":67,"stem":68,"icon":69},"Client Logging","\u002Flogging\u002Fclient-logging","2.logging\u002F5.client-logging","i-lucide-monitor",{"title":71,"icon":72,"path":73,"stem":74,"children":75,"page":34},"AI SDK","i-simple-icons-vercel","\u002Flogging\u002Fai-sdk","2.logging\u002F6.ai-sdk",[76,79,84,89,94],{"title":41,"path":77,"stem":78,"icon":44},"\u002Flogging\u002Fai-sdk\u002Foverview","2.logging\u002F6.ai-sdk\u002F01.overview",{"title":80,"path":81,"stem":82,"icon":83},"Usage","\u002Flogging\u002Fai-sdk\u002Fusage","2.logging\u002F6.ai-sdk\u002F02.usage","i-lucide-code",{"title":85,"path":86,"stem":87,"icon":88},"Options","\u002Flogging\u002Fai-sdk\u002Foptions","2.logging\u002F6.ai-sdk\u002F03.options","i-lucide-sliders",{"title":90,"path":91,"stem":92,"icon":93},"Metadata","\u002Flogging\u002Fai-sdk\u002Fmetadata","2.logging\u002F6.ai-sdk\u002F04.metadata","i-lucide-database",{"title":95,"path":96,"stem":97,"icon":98},"Telemetry","\u002Flogging\u002Fai-sdk\u002Ftelemetry","2.logging\u002F6.ai-sdk\u002F05.telemetry","i-lucide-activity",{"title":100,"icon":101,"path":102,"stem":103,"children":104,"page":34},"Better Auth","i-simple-icons-betterauth","\u002Flogging\u002Fbetter-auth","2.logging\u002F7.better-auth",[105,108,113,118,122],{"title":41,"path":106,"stem":107,"icon":44},"\u002Flogging\u002Fbetter-auth\u002Foverview","2.logging\u002F7.better-auth\u002F01.overview",{"title":109,"path":110,"stem":111,"icon":112},"Identify User","\u002Flogging\u002Fbetter-auth\u002Fidentify-user","2.logging\u002F7.better-auth\u002F02.identify-user","i-lucide-user-check",{"title":114,"path":115,"stem":116,"icon":117},"Middleware","\u002Flogging\u002Fbetter-auth\u002Fmiddleware","2.logging\u002F7.better-auth\u002F03.middleware","i-lucide-shield",{"title":119,"path":120,"stem":121,"icon":69},"Client Sync","\u002Flogging\u002Fbetter-auth\u002Fclient-sync","2.logging\u002F7.better-auth\u002F04.client-sync",{"title":123,"path":124,"stem":125,"icon":126},"Performance","\u002Flogging\u002Fbetter-auth\u002Fperformance","2.logging\u002F7.better-auth\u002F05.performance","i-lucide-gauge",{"title":128,"icon":129,"path":130,"stem":131,"children":132,"page":34},"Audit Logs","i-lucide-shield-check","\u002Flogging\u002Faudit","2.logging\u002F8.audit",[133,136,141,146,151,155],{"title":41,"path":134,"stem":135,"icon":44},"\u002Flogging\u002Faudit\u002Foverview","2.logging\u002F8.audit\u002F01.overview",{"title":137,"path":138,"stem":139,"icon":140},"Schema","\u002Flogging\u002Faudit\u002Fschema","2.logging\u002F8.audit\u002F02.schema","i-lucide-file-text",{"title":142,"path":143,"stem":144,"icon":145},"Recording","\u002Flogging\u002Faudit\u002Frecording","2.logging\u002F8.audit\u002F03.recording","i-lucide-pen-line",{"title":147,"path":148,"stem":149,"icon":150},"Drains","\u002Flogging\u002Faudit\u002Fpipeline","2.logging\u002F8.audit\u002F04.pipeline","i-lucide-link",{"title":152,"path":153,"stem":154,"icon":129},"Compliance","\u002Flogging\u002Faudit\u002Fcompliance","2.logging\u002F8.audit\u002F05.compliance",{"title":156,"path":157,"stem":158,"icon":64},"Recipes","\u002Flogging\u002Faudit\u002Frecipes","2.logging\u002F8.audit\u002F06.recipes",{"title":160,"path":161,"stem":162,"children":163,"page":34},"Core Concepts","\u002Fcore-concepts","3.core-concepts",[164,169,174,179,184,188,191,196],{"title":165,"path":166,"stem":167,"icon":168},"Lifecycle","\u002Fcore-concepts\u002Flifecycle","3.core-concepts\u002F0.lifecycle","i-lucide-arrow-right-left",{"title":170,"path":171,"stem":172,"icon":173},"Configuration","\u002Fcore-concepts\u002Fconfiguration","3.core-concepts\u002F1.configuration","i-lucide-settings",{"title":175,"path":176,"stem":177,"icon":178},"Sampling","\u002Fcore-concepts\u002Fsampling","3.core-concepts\u002F2.sampling","i-lucide-filter",{"title":180,"path":181,"stem":182,"icon":183},"Typed Fields","\u002Fcore-concepts\u002Ftyped-fields","3.core-concepts\u002F3.typed-fields","i-simple-icons-typescript",{"title":185,"path":186,"stem":187,"icon":129},"Best Practices","\u002Fcore-concepts\u002Fbest-practices","3.core-concepts\u002F4.best-practices",{"title":123,"path":189,"stem":190,"icon":126},"\u002Fcore-concepts\u002Fperformance","3.core-concepts\u002F5.performance",{"title":192,"path":193,"stem":194,"icon":195},"Vite Plugin","\u002Fcore-concepts\u002Fvite-plugin","3.core-concepts\u002F6.vite-plugin","i-custom-vite",{"title":197,"path":198,"stem":199,"icon":200},"Auto-Redaction","\u002Fcore-concepts\u002Fredaction","3.core-concepts\u002F7.redaction","i-lucide-eye-off",{"title":202,"path":203,"stem":204,"children":205,"page":34},"Frameworks","\u002Fframeworks","4.frameworks",[206,210,215,220,225,230,235,240,245,250,255,260,265,270,274,279,284],{"title":41,"path":207,"stem":208,"icon":209},"\u002Fframeworks\u002Foverview","4.frameworks\u002F00.overview","i-lucide-layout-grid",{"title":211,"path":212,"stem":213,"icon":214},"Nuxt","\u002Fframeworks\u002Fnuxt","4.frameworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":216,"path":217,"stem":218,"icon":219},"Next.js","\u002Fframeworks\u002Fnextjs","4.frameworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":221,"path":222,"stem":223,"icon":224},"SvelteKit","\u002Fframeworks\u002Fsveltekit","4.frameworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":226,"path":227,"stem":228,"icon":229},"Nitro","\u002Fframeworks\u002Fnitro","4.frameworks\u002F04.nitro","i-custom-nitro",{"title":231,"path":232,"stem":233,"icon":234},"TanStack Start","\u002Fframeworks\u002Ftanstack-start","4.frameworks\u002F05.tanstack-start","i-custom-tanstack",{"title":236,"path":237,"stem":238,"icon":239},"NestJS","\u002Fframeworks\u002Fnestjs","4.frameworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":241,"path":242,"stem":243,"icon":244},"Express","\u002Fframeworks\u002Fexpress","4.frameworks\u002F07.express","i-simple-icons-express",{"title":246,"path":247,"stem":248,"icon":249},"Hono","\u002Fframeworks\u002Fhono","4.frameworks\u002F08.hono","i-simple-icons-hono",{"title":251,"path":252,"stem":253,"icon":254},"Fastify","\u002Fframeworks\u002Ffastify","4.frameworks\u002F09.fastify","i-simple-icons-fastify",{"title":256,"path":257,"stem":258,"icon":259},"Elysia","\u002Fframeworks\u002Felysia","4.frameworks\u002F10.elysia","i-custom-elysia",{"title":261,"path":262,"stem":263,"icon":264},"React Router","\u002Fframeworks\u002Freact-router","4.frameworks\u002F11.react-router","i-custom-reactrouter",{"title":266,"path":267,"stem":268,"icon":269},"Cloudflare Workers","\u002Fframeworks\u002Fcloudflare-workers","4.frameworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":271,"path":272,"stem":273,"icon":183},"Standalone","\u002Fframeworks\u002Fstandalone","4.frameworks\u002F13.standalone",{"title":275,"path":276,"stem":277,"icon":278},"Astro","\u002Fframeworks\u002Fastro","4.frameworks\u002F14.astro","i-simple-icons-astro",{"title":280,"path":281,"stem":282,"icon":283},"AWS Lambda","\u002Fframeworks\u002Faws-lambda","4.frameworks\u002F16.aws-lambda","i-custom-lambda",{"title":285,"path":286,"stem":287,"icon":288},"Custom Integration","\u002Fframeworks\u002Fcustom-integration","4.frameworks\u002F17.custom-integration","i-lucide-puzzle",{"title":290,"path":291,"stem":292,"children":293,"page":34},"Build on top","\u002Fbuild-on-top","5.build-on-top",[294,297,302,307,311,315,320],{"title":41,"path":295,"stem":296,"icon":54},"\u002Fbuild-on-top\u002Foverview","5.build-on-top\u002F0.overview",{"title":298,"path":299,"stem":300,"icon":301},"Stream","\u002Fbuild-on-top\u002Fstream","5.build-on-top\u002F1.stream","i-lucide-radio-tower",{"title":303,"path":304,"stem":305,"icon":306},"FS reader","\u002Fbuild-on-top\u002Ffs-reader","5.build-on-top\u002F2.fs-reader","i-lucide-folder-search",{"title":156,"path":308,"stem":309,"icon":310},"\u002Fbuild-on-top\u002Fconsumer-recipes","5.build-on-top\u002F3.consumer-recipes","i-lucide-chef-hat",{"title":312,"path":313,"stem":314,"icon":288},"Pipeline extension","\u002Fbuild-on-top\u002Fpipeline-extension","5.build-on-top\u002F4.pipeline-extension",{"title":316,"path":317,"stem":318,"icon":319},"Sinks","\u002Fbuild-on-top\u002Fsinks","5.build-on-top\u002F5.sinks","i-lucide-share-2",{"title":321,"path":322,"stem":323,"icon":288},"Framework integration","\u002Fbuild-on-top\u002Fframework-integration","5.build-on-top\u002F6.framework-integration",{"title":325,"path":326,"stem":327,"children":328,"page":34},"Adapters","\u002Fadapters","6.adapters",[329,332,372,387],{"title":41,"path":330,"stem":331,"icon":44},"\u002Fadapters\u002Foverview","6.adapters\u002F01.overview",{"title":333,"path":334,"stem":335,"children":336,"page":34},"Cloud destinations","\u002Fadapters\u002Fcloud","6.adapters\u002F02.cloud",[337,342,347,352,357,362,367],{"title":338,"path":339,"stem":340,"icon":341},"Axiom","\u002Fadapters\u002Fcloud\u002Faxiom","6.adapters\u002F02.cloud\u002F01.axiom","i-custom-axiom",{"title":343,"path":344,"stem":345,"icon":346},"OTLP","\u002Fadapters\u002Fcloud\u002Fotlp","6.adapters\u002F02.cloud\u002F02.otlp","i-simple-icons-opentelemetry",{"title":348,"path":349,"stem":350,"icon":351},"PostHog","\u002Fadapters\u002Fcloud\u002Fposthog","6.adapters\u002F02.cloud\u002F03.posthog","i-simple-icons-posthog",{"title":353,"path":354,"stem":355,"icon":356},"Sentry","\u002Fadapters\u002Fcloud\u002Fsentry","6.adapters\u002F02.cloud\u002F04.sentry","i-simple-icons-sentry",{"title":358,"path":359,"stem":360,"icon":361},"Better Stack","\u002Fadapters\u002Fcloud\u002Fbetter-stack","6.adapters\u002F02.cloud\u002F05.better-stack","i-simple-icons-betterstack",{"title":363,"path":364,"stem":365,"icon":366},"Datadog","\u002Fadapters\u002Fcloud\u002Fdatadog","6.adapters\u002F02.cloud\u002F06.datadog","i-simple-icons-datadog",{"title":368,"path":369,"stem":370,"icon":371},"HyperDX","\u002Fadapters\u002Fcloud\u002Fhyperdx","6.adapters\u002F02.cloud\u002F07.hyperdx","i-custom-hyperdx",{"title":373,"path":374,"stem":375,"children":376,"page":34},"Self-hosted","\u002Fadapters\u002Fself-hosted","6.adapters\u002F03.self-hosted",[377,382],{"title":378,"path":379,"stem":380,"icon":381},"File System","\u002Fadapters\u002Fself-hosted\u002Ffs","6.adapters\u002F03.self-hosted\u002F01.fs","i-lucide-hard-drive",{"title":383,"path":384,"stem":385,"icon":386},"NuxtHub","\u002Fadapters\u002Fself-hosted\u002Fnuxthub","6.adapters\u002F03.self-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":388,"path":389,"stem":390,"children":391,"page":34},"Building blocks","\u002Fadapters\u002Fbuilding-blocks","6.adapters\u002F04.building-blocks",[392,397,402,406],{"title":393,"path":394,"stem":395,"icon":396},"Pipeline","\u002Fadapters\u002Fbuilding-blocks\u002Fpipeline","6.adapters\u002F04.building-blocks\u002F01.pipeline","i-lucide-workflow",{"title":398,"path":399,"stem":400,"icon":401},"HTTP","\u002Fadapters\u002Fbuilding-blocks\u002Fhttp","6.adapters\u002F04.building-blocks\u002F02.http","i-lucide-globe",{"title":403,"path":404,"stem":405,"icon":83},"Custom Adapters","\u002Fadapters\u002Fbuilding-blocks\u002Fcustom","6.adapters\u002F04.building-blocks\u002F03.custom",{"title":407,"path":408,"stem":409,"icon":410},"Toolkit","\u002Fadapters\u002Fbuilding-blocks\u002Ftoolkit","6.adapters\u002F04.building-blocks\u002F04.toolkit","i-lucide-blocks",{"title":412,"path":413,"stem":414,"children":415,"page":34},"Enrichers","\u002Fenrichers","7.enrichers",[416,419,423],{"title":41,"path":417,"stem":418,"icon":28},"\u002Fenrichers\u002Foverview","7.enrichers\u002F1.overview",{"title":420,"path":421,"stem":422,"icon":288},"Built-in","\u002Fenrichers\u002Fbuilt-in","7.enrichers\u002F2.built-in",{"title":424,"path":425,"stem":426,"icon":83},"Custom","\u002Fenrichers\u002Fcustom","7.enrichers\u002F3.custom",{"id":428,"title":321,"body":429,"description":941,"extension":942,"links":943,"meta":944,"navigation":945,"path":322,"seo":946,"stem":323,"__hash__":947},"docs\u002F5.build-on-top\u002F6.framework-integration.md",{"type":430,"value":431,"toc":937},"minimark",[432,449,523,528,535,597,605,609,617,930,933],[433,434,435,436,440,441,444,445,448],"p",{},"When the framework you use doesn't have an ",[437,438,439],"code",{},"evlog\u002F\u003Cframework>"," package yet, you build the integration yourself. evlog ships a small toolkit (",[437,442,443],{},"createMiddlewareLogger",", ",[437,446,447],{},"defineFrameworkIntegration",") that handles the request-context plumbing — you only write the framework-specific glue.",[450,451,454,457,514],"prompt",{":actions":452,"description":453,"icon":288},"[\"copy\",\"cursor\",\"windsurf\"]","Build an evlog integration for a custom framework",[433,455,456],{},"Wire evlog into an HTTP framework (or non-HTTP runtime) that doesn't have a built-in integration.",[458,459,460,481,487,496,507],"ul",{},[461,462,463,464,466,467,470,471,444,474,444,477,480],"li",{},"For HTTP frameworks, use ",[437,465,447],{}," from ",[437,468,469],{},"evlog\u002Ftoolkit"," — declare how to extract the request (",[437,472,473],{},"getMethod",[437,475,476],{},"getUrl",[437,478,479],{},"getHeaders","), how to attach the logger to the framework's context, and how to handle response\u002Ferrors",[461,482,483,484,486],{},"Or use ",[437,485,443],{}," for the imperative path: create the logger at request start, attach it to the request-scoped context, emit on response end",[461,488,489,490,466,493,495],{},"For non-HTTP runtimes (queue workers, CLI scripts, cron jobs, durable workflows), use ",[437,491,492],{},"createRequestLogger",[437,494,469],{}," directly — wrap each unit of work in a logger lifecycle",[461,497,498,499,502,503,506],{},"Run enrichers via the plugin runner's ",[437,500,501],{},"runEnrich(ctx)"," (or ",[437,504,505],{},"runEnrichAndDrain(ctx)"," if you also want plugin drains to fire) before emitting — never bypass the runner",[461,508,509,510,513],{},"Plug the resulting drain into ",[437,511,512],{},"createDrainPipeline()"," for batching + retries — same as built-in integrations",[433,515,516,517],{},"Docs: ",[518,519,520],"a",{"href":520,"rel":521},"https:\u002F\u002Fwww.evlog.dev\u002Fbuild-on-top\u002Fframework-integration",[522],"nofollow",[524,525,527],"h2",{"id":526},"what-you-need-to-wire","What you need to wire",[433,529,530,531,534],{},"The complete walkthrough lives in ",[518,532,533],{"href":286},"Custom integration",". The short version:",[536,537,538,554],"table",{},[539,540,541],"thead",{},[542,543,544,548,551],"tr",{},[545,546,547],"th",{},"Surface",[545,549,550],{},"What it does",[545,552,553],{},"When to use",[555,556,557,571,584],"tbody",{},[542,558,559,565,568],{},[560,561,562],"td",{},[437,563,564],{},"defineFrameworkIntegration()",[560,566,567],{},"Declaratively wire request extraction + logger attachment",[560,569,570],{},"HTTP frameworks (Hono, Express, Fastify, Elysia, NestJS-shaped)",[542,572,573,578,581],{},[560,574,575],{},[437,576,577],{},"createMiddlewareLogger()",[560,579,580],{},"Imperative path: create the logger at request start, emit on response end",[560,582,583],{},"When the framework's middleware shape doesn't fit declarative wiring",[542,585,586,591,594],{},[560,587,588],{},[437,589,590],{},"createRequestLogger()",[560,592,593],{},"Lower-level: wrap any unit of work in a logger lifecycle",[560,595,596],{},"Non-HTTP runtimes (queue workers, CLI, cron, durable workflows)",[433,598,599,600,604],{},"The mental model is always the same: ",[601,602,603],"strong",{},"request lifecycle → logger creation → enrich → drain",". The toolkit gives you the request-context plumbing; you only write the framework-specific glue.",[524,606,608],{"id":607},"non-http-runtimes","Non-HTTP runtimes",[433,610,611,612,466,614,616],{},"For queue workers, CLI drivers, cron jobs, or durable execution engines, skip the HTTP-shaped helpers and use ",[437,613,492],{},[437,615,469],{}," directly:",[618,619,624],"pre",{"className":620,"code":621,"language":622,"meta":623,"style":623},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createRequestLogger } from 'evlog\u002Ftoolkit'\n\nasync function processJob(job: Job) {\n  const logger = createRequestLogger({\n    service: 'jobs',\n    context: { jobId: job.id, queue: job.queue },\n  })\n\n  try {\n    await runJob(job)\n    logger.set({ status: 'success' })\n  } catch (err) {\n    logger.error(err)\n    throw err\n  } finally {\n    await logger.emit()\n  }\n}\n","ts","",[437,625,626,658,665,699,719,738,780,789,794,802,817,849,868,884,893,903,918,924],{"__ignoreMap":623},[627,628,631,635,639,643,646,649,652,655],"span",{"class":629,"line":630},"line",1,[627,632,634],{"class":633},"s7zQu","import",[627,636,638],{"class":637},"sMK4o"," {",[627,640,642],{"class":641},"sTEyZ"," createRequestLogger",[627,644,645],{"class":637}," }",[627,647,648],{"class":633}," from",[627,650,651],{"class":637}," '",[627,653,469],{"class":654},"sfazB",[627,656,657],{"class":637},"'\n",[627,659,661],{"class":629,"line":660},2,[627,662,664],{"emptyLinePlaceholder":663},true,"\n",[627,666,668,672,675,679,682,686,689,693,696],{"class":629,"line":667},3,[627,669,671],{"class":670},"spNyl","async",[627,673,674],{"class":670}," function",[627,676,678],{"class":677},"s2Zo4"," processJob",[627,680,681],{"class":637},"(",[627,683,685],{"class":684},"sHdIc","job",[627,687,688],{"class":637},":",[627,690,692],{"class":691},"sBMFI"," Job",[627,694,695],{"class":637},")",[627,697,698],{"class":637}," {\n",[627,700,702,705,708,711,713,716],{"class":629,"line":701},4,[627,703,704],{"class":670},"  const",[627,706,707],{"class":641}," logger",[627,709,710],{"class":637}," =",[627,712,642],{"class":677},[627,714,681],{"class":715},"swJcz",[627,717,718],{"class":637},"{\n",[627,720,722,725,727,729,732,735],{"class":629,"line":721},5,[627,723,724],{"class":715},"    service",[627,726,688],{"class":637},[627,728,651],{"class":637},[627,730,731],{"class":654},"jobs",[627,733,734],{"class":637},"'",[627,736,737],{"class":637},",\n",[627,739,741,744,746,748,751,753,756,759,762,765,768,770,772,774,777],{"class":629,"line":740},6,[627,742,743],{"class":715},"    context",[627,745,688],{"class":637},[627,747,638],{"class":637},[627,749,750],{"class":715}," jobId",[627,752,688],{"class":637},[627,754,755],{"class":641}," job",[627,757,758],{"class":637},".",[627,760,761],{"class":641},"id",[627,763,764],{"class":637},",",[627,766,767],{"class":715}," queue",[627,769,688],{"class":637},[627,771,755],{"class":641},[627,773,758],{"class":637},[627,775,776],{"class":641},"queue",[627,778,779],{"class":637}," },\n",[627,781,783,786],{"class":629,"line":782},7,[627,784,785],{"class":637},"  }",[627,787,788],{"class":715},")\n",[627,790,792],{"class":629,"line":791},8,[627,793,664],{"emptyLinePlaceholder":663},[627,795,797,800],{"class":629,"line":796},9,[627,798,799],{"class":633},"  try",[627,801,698],{"class":637},[627,803,805,808,811,813,815],{"class":629,"line":804},10,[627,806,807],{"class":633},"    await",[627,809,810],{"class":677}," runJob",[627,812,681],{"class":715},[627,814,685],{"class":641},[627,816,788],{"class":715},[627,818,820,823,825,828,830,833,836,838,840,843,845,847],{"class":629,"line":819},11,[627,821,822],{"class":641},"    logger",[627,824,758],{"class":637},[627,826,827],{"class":677},"set",[627,829,681],{"class":715},[627,831,832],{"class":637},"{",[627,834,835],{"class":715}," status",[627,837,688],{"class":637},[627,839,651],{"class":637},[627,841,842],{"class":654},"success",[627,844,734],{"class":637},[627,846,645],{"class":637},[627,848,788],{"class":715},[627,850,852,854,857,860,863,866],{"class":629,"line":851},12,[627,853,785],{"class":637},[627,855,856],{"class":633}," catch",[627,858,859],{"class":715}," (",[627,861,862],{"class":641},"err",[627,864,865],{"class":715},") ",[627,867,718],{"class":637},[627,869,871,873,875,878,880,882],{"class":629,"line":870},13,[627,872,822],{"class":641},[627,874,758],{"class":637},[627,876,877],{"class":677},"error",[627,879,681],{"class":715},[627,881,862],{"class":641},[627,883,788],{"class":715},[627,885,887,890],{"class":629,"line":886},14,[627,888,889],{"class":633},"    throw",[627,891,892],{"class":641}," err\n",[627,894,896,898,901],{"class":629,"line":895},15,[627,897,785],{"class":637},[627,899,900],{"class":633}," finally",[627,902,698],{"class":637},[627,904,906,908,910,912,915],{"class":629,"line":905},16,[627,907,807],{"class":633},[627,909,707],{"class":641},[627,911,758],{"class":637},[627,913,914],{"class":677},"emit",[627,916,917],{"class":715},"()\n",[627,919,921],{"class":629,"line":920},17,[627,922,923],{"class":637},"  }\n",[627,925,927],{"class":629,"line":926},18,[627,928,929],{"class":637},"}\n",[433,931,932],{},"Same enrichers, same drain hook, same identity headers — only the entry point shape changes.",[934,935,936],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}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":623,"searchDepth":660,"depth":660,"links":938},[939,940],{"id":526,"depth":660,"text":527},{"id":607,"depth":660,"text":608},"Build evlog support for an HTTP framework that doesn't ship a built-in integration — Medusa, AdonisJS, h3 directly, custom dispatchers, queue workers.","md",null,{},{"title":321,"icon":288},{"title":321,"description":941},"18raRjaMg1luZ86_a6ukW8gv4v0TAOIrXQxbi8_NM-E",[949,951],{"title":316,"path":317,"stem":318,"description":950,"icon":319,"children":-1},"Build, batch, and fan out drains — write a custom drain for any backend, wrap it in createDrainPipeline for batch + retry, and compose multiple destinations through one pipeline.",{"title":41,"path":330,"stem":331,"description":952,"icon":44,"children":-1},"Send your logs to external services with evlog adapters. Built-in support for popular observability platforms and custom destinations.",1778349124698]