[{"data":1,"prerenderedAt":2017},["ShallowReactive",2],{"navigation_docs":3,"-adapters-self-hosted-fs":388,"-adapters-self-hosted-fs-surround":2012},[4,35,155,197,285,372],{"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,94,122],{"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},"Client Logging","\u002Flogging\u002Fclient-logging","2.logging\u002F4.client-logging","i-lucide-monitor",{"title":66,"icon":67,"path":68,"stem":69,"children":70,"page":34},"AI SDK","i-simple-icons-vercel","\u002Flogging\u002Fai-sdk","2.logging\u002F5.ai-sdk",[71,74,79,84,89],{"title":41,"path":72,"stem":73,"icon":44},"\u002Flogging\u002Fai-sdk\u002Foverview","2.logging\u002F5.ai-sdk\u002F01.overview",{"title":75,"path":76,"stem":77,"icon":78},"Usage","\u002Flogging\u002Fai-sdk\u002Fusage","2.logging\u002F5.ai-sdk\u002F02.usage","i-lucide-code",{"title":80,"path":81,"stem":82,"icon":83},"Options","\u002Flogging\u002Fai-sdk\u002Foptions","2.logging\u002F5.ai-sdk\u002F03.options","i-lucide-sliders",{"title":85,"path":86,"stem":87,"icon":88},"Metadata","\u002Flogging\u002Fai-sdk\u002Fmetadata","2.logging\u002F5.ai-sdk\u002F04.metadata","i-lucide-database",{"title":90,"path":91,"stem":92,"icon":93},"Telemetry","\u002Flogging\u002Fai-sdk\u002Ftelemetry","2.logging\u002F5.ai-sdk\u002F05.telemetry","i-lucide-activity",{"title":95,"icon":96,"path":97,"stem":98,"children":99,"page":34},"Better Auth","i-simple-icons-betterauth","\u002Flogging\u002Fbetter-auth","2.logging\u002F6.better-auth",[100,103,108,113,117],{"title":41,"path":101,"stem":102,"icon":44},"\u002Flogging\u002Fbetter-auth\u002Foverview","2.logging\u002F6.better-auth\u002F01.overview",{"title":104,"path":105,"stem":106,"icon":107},"Identify User","\u002Flogging\u002Fbetter-auth\u002Fidentify-user","2.logging\u002F6.better-auth\u002F02.identify-user","i-lucide-user-check",{"title":109,"path":110,"stem":111,"icon":112},"Middleware","\u002Flogging\u002Fbetter-auth\u002Fmiddleware","2.logging\u002F6.better-auth\u002F03.middleware","i-lucide-shield",{"title":114,"path":115,"stem":116,"icon":64},"Client Sync","\u002Flogging\u002Fbetter-auth\u002Fclient-sync","2.logging\u002F6.better-auth\u002F04.client-sync",{"title":118,"path":119,"stem":120,"icon":121},"Performance","\u002Flogging\u002Fbetter-auth\u002Fperformance","2.logging\u002F6.better-auth\u002F05.performance","i-lucide-gauge",{"title":123,"icon":124,"path":125,"stem":126,"children":127,"page":34},"Audit Logs","i-lucide-shield-check","\u002Flogging\u002Faudit","2.logging\u002F7.audit",[128,131,136,141,146,150],{"title":41,"path":129,"stem":130,"icon":44},"\u002Flogging\u002Faudit\u002Foverview","2.logging\u002F7.audit\u002F01.overview",{"title":132,"path":133,"stem":134,"icon":135},"Schema","\u002Flogging\u002Faudit\u002Fschema","2.logging\u002F7.audit\u002F02.schema","i-lucide-file-text",{"title":137,"path":138,"stem":139,"icon":140},"Recording","\u002Flogging\u002Faudit\u002Frecording","2.logging\u002F7.audit\u002F03.recording","i-lucide-pen-line",{"title":142,"path":143,"stem":144,"icon":145},"Drains","\u002Flogging\u002Faudit\u002Fpipeline","2.logging\u002F7.audit\u002F04.pipeline","i-lucide-link",{"title":147,"path":148,"stem":149,"icon":124},"Compliance","\u002Flogging\u002Faudit\u002Fcompliance","2.logging\u002F7.audit\u002F05.compliance",{"title":151,"path":152,"stem":153,"icon":154},"Recipes","\u002Flogging\u002Faudit\u002Frecipes","2.logging\u002F7.audit\u002F06.recipes","i-lucide-book-open",{"title":156,"path":157,"stem":158,"children":159,"page":34},"Core Concepts","\u002Fcore-concepts","3.core-concepts",[160,165,170,175,180,184,187,192],{"title":161,"path":162,"stem":163,"icon":164},"Lifecycle","\u002Fcore-concepts\u002Flifecycle","3.core-concepts\u002F0.lifecycle","i-lucide-arrow-right-left",{"title":166,"path":167,"stem":168,"icon":169},"Configuration","\u002Fcore-concepts\u002Fconfiguration","3.core-concepts\u002F1.configuration","i-lucide-settings",{"title":171,"path":172,"stem":173,"icon":174},"Sampling","\u002Fcore-concepts\u002Fsampling","3.core-concepts\u002F2.sampling","i-lucide-filter",{"title":176,"path":177,"stem":178,"icon":179},"Typed Fields","\u002Fcore-concepts\u002Ftyped-fields","3.core-concepts\u002F3.typed-fields","i-simple-icons-typescript",{"title":181,"path":182,"stem":183,"icon":124},"Best Practices","\u002Fcore-concepts\u002Fbest-practices","3.core-concepts\u002F4.best-practices",{"title":118,"path":185,"stem":186,"icon":121},"\u002Fcore-concepts\u002Fperformance","3.core-concepts\u002F5.performance",{"title":188,"path":189,"stem":190,"icon":191},"Vite Plugin","\u002Fcore-concepts\u002Fvite-plugin","3.core-concepts\u002F6.vite-plugin","i-custom-vite",{"title":193,"path":194,"stem":195,"icon":196},"Auto-Redaction","\u002Fcore-concepts\u002Fredaction","3.core-concepts\u002F7.redaction","i-lucide-eye-off",{"title":198,"path":199,"stem":200,"children":201,"page":34},"Frameworks","\u002Fframeworks","4.frameworks",[202,206,211,216,221,226,231,236,241,246,251,256,261,266,270,275,280],{"title":41,"path":203,"stem":204,"icon":205},"\u002Fframeworks\u002Foverview","4.frameworks\u002F00.overview","i-lucide-layout-grid",{"title":207,"path":208,"stem":209,"icon":210},"Nuxt","\u002Fframeworks\u002Fnuxt","4.frameworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":212,"path":213,"stem":214,"icon":215},"Next.js","\u002Fframeworks\u002Fnextjs","4.frameworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":217,"path":218,"stem":219,"icon":220},"SvelteKit","\u002Fframeworks\u002Fsveltekit","4.frameworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":222,"path":223,"stem":224,"icon":225},"Nitro","\u002Fframeworks\u002Fnitro","4.frameworks\u002F04.nitro","i-custom-nitro",{"title":227,"path":228,"stem":229,"icon":230},"TanStack Start","\u002Fframeworks\u002Ftanstack-start","4.frameworks\u002F05.tanstack-start","i-custom-tanstack",{"title":232,"path":233,"stem":234,"icon":235},"NestJS","\u002Fframeworks\u002Fnestjs","4.frameworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":237,"path":238,"stem":239,"icon":240},"Express","\u002Fframeworks\u002Fexpress","4.frameworks\u002F07.express","i-simple-icons-express",{"title":242,"path":243,"stem":244,"icon":245},"Hono","\u002Fframeworks\u002Fhono","4.frameworks\u002F08.hono","i-simple-icons-hono",{"title":247,"path":248,"stem":249,"icon":250},"Fastify","\u002Fframeworks\u002Ffastify","4.frameworks\u002F09.fastify","i-simple-icons-fastify",{"title":252,"path":253,"stem":254,"icon":255},"Elysia","\u002Fframeworks\u002Felysia","4.frameworks\u002F10.elysia","i-custom-elysia",{"title":257,"path":258,"stem":259,"icon":260},"React Router","\u002Fframeworks\u002Freact-router","4.frameworks\u002F11.react-router","i-custom-reactrouter",{"title":262,"path":263,"stem":264,"icon":265},"Cloudflare Workers","\u002Fframeworks\u002Fcloudflare-workers","4.frameworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":267,"path":268,"stem":269,"icon":179},"Standalone","\u002Fframeworks\u002Fstandalone","4.frameworks\u002F13.standalone",{"title":271,"path":272,"stem":273,"icon":274},"Astro","\u002Fframeworks\u002Fastro","4.frameworks\u002F14.astro","i-simple-icons-astro",{"title":276,"path":277,"stem":278,"icon":279},"AWS Lambda","\u002Fframeworks\u002Faws-lambda","4.frameworks\u002F16.aws-lambda","i-custom-lambda",{"title":281,"path":282,"stem":283,"icon":284},"Custom Integration","\u002Fframeworks\u002Fcustom-integration","4.frameworks\u002F17.custom-integration","i-lucide-puzzle",{"title":286,"path":287,"stem":288,"children":289,"page":34},"Adapters","\u002Fadapters","6.adapters",[290,293,333,348],{"title":41,"path":291,"stem":292,"icon":44},"\u002Fadapters\u002Foverview","6.adapters\u002F01.overview",{"title":294,"path":295,"stem":296,"children":297,"page":34},"Cloud destinations","\u002Fadapters\u002Fcloud","6.adapters\u002F02.cloud",[298,303,308,313,318,323,328],{"title":299,"path":300,"stem":301,"icon":302},"Axiom","\u002Fadapters\u002Fcloud\u002Faxiom","6.adapters\u002F02.cloud\u002F01.axiom","i-custom-axiom",{"title":304,"path":305,"stem":306,"icon":307},"OTLP","\u002Fadapters\u002Fcloud\u002Fotlp","6.adapters\u002F02.cloud\u002F02.otlp","i-simple-icons-opentelemetry",{"title":309,"path":310,"stem":311,"icon":312},"PostHog","\u002Fadapters\u002Fcloud\u002Fposthog","6.adapters\u002F02.cloud\u002F03.posthog","i-simple-icons-posthog",{"title":314,"path":315,"stem":316,"icon":317},"Sentry","\u002Fadapters\u002Fcloud\u002Fsentry","6.adapters\u002F02.cloud\u002F04.sentry","i-simple-icons-sentry",{"title":319,"path":320,"stem":321,"icon":322},"Better Stack","\u002Fadapters\u002Fcloud\u002Fbetter-stack","6.adapters\u002F02.cloud\u002F05.better-stack","i-simple-icons-betterstack",{"title":324,"path":325,"stem":326,"icon":327},"Datadog","\u002Fadapters\u002Fcloud\u002Fdatadog","6.adapters\u002F02.cloud\u002F06.datadog","i-simple-icons-datadog",{"title":329,"path":330,"stem":331,"icon":332},"HyperDX","\u002Fadapters\u002Fcloud\u002Fhyperdx","6.adapters\u002F02.cloud\u002F07.hyperdx","i-custom-hyperdx",{"title":334,"path":335,"stem":336,"children":337,"page":34},"Self-hosted","\u002Fadapters\u002Fself-hosted","6.adapters\u002F03.self-hosted",[338,343],{"title":339,"path":340,"stem":341,"icon":342},"File System","\u002Fadapters\u002Fself-hosted\u002Ffs","6.adapters\u002F03.self-hosted\u002F01.fs","i-lucide-hard-drive",{"title":344,"path":345,"stem":346,"icon":347},"NuxtHub","\u002Fadapters\u002Fself-hosted\u002Fnuxthub","6.adapters\u002F03.self-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":349,"path":350,"stem":351,"children":352,"page":34},"Building blocks","\u002Fadapters\u002Fbuilding-blocks","6.adapters\u002F04.building-blocks",[353,358,363,367],{"title":354,"path":355,"stem":356,"icon":357},"Pipeline","\u002Fadapters\u002Fbuilding-blocks\u002Fpipeline","6.adapters\u002F04.building-blocks\u002F01.pipeline","i-lucide-workflow",{"title":359,"path":360,"stem":361,"icon":362},"HTTP","\u002Fadapters\u002Fbuilding-blocks\u002Fhttp","6.adapters\u002F04.building-blocks\u002F02.http","i-lucide-globe",{"title":364,"path":365,"stem":366,"icon":78},"Custom Adapters","\u002Fadapters\u002Fbuilding-blocks\u002Fcustom","6.adapters\u002F04.building-blocks\u002F03.custom",{"title":368,"path":369,"stem":370,"icon":371},"Toolkit","\u002Fadapters\u002Fbuilding-blocks\u002Ftoolkit","6.adapters\u002F04.building-blocks\u002F04.toolkit","i-lucide-blocks",{"title":373,"path":374,"stem":375,"children":376,"page":34},"Enrichers","\u002Fenrichers","7.enrichers",[377,380,384],{"title":41,"path":378,"stem":379,"icon":28},"\u002Fenrichers\u002Foverview","7.enrichers\u002F1.overview",{"title":381,"path":382,"stem":383,"icon":284},"Built-in","\u002Fenrichers\u002Fbuilt-in","7.enrichers\u002F2.built-in",{"title":385,"path":386,"stem":387,"icon":78},"Custom","\u002Fenrichers\u002Fcustom","7.enrichers\u002F3.custom",{"id":389,"title":390,"body":391,"description":1997,"extension":1998,"links":1999,"meta":2008,"navigation":2009,"path":340,"seo":2010,"stem":341,"__hash__":2011},"docs\u002F6.adapters\u002F03.self-hosted\u002F01.fs.md","File System Adapter",{"type":392,"value":393,"toc":1977},"minimark",[394,398,430,476,480,483,526,529,532,1110,1116,1120,1129,1136,1154,1157,1161,1264,1268,1427,1431,1441,1448,1452,1461,1465,1468,1627,1631,1635,1654,1658,1741,1745,1798,1802,1805,1932,1936,1946,1950,1973],[395,396,397],"p",{},"The File System adapter writes your wide events to local NDJSON files (one JSON object per line, one file per day). This enables:",[399,400,401,414,424],"ul",{},[402,403,404,408,409,413],"li",{},[405,406,407],"strong",{},"AI agent integration"," - point a skill to ",[410,411,412],"code",{},".evlog\u002Flogs\u002F"," to parse structured logs for debugging and pattern analysis",[402,415,416,419,420,423],{},[405,417,418],{},"Local dev debugging"," - persistent log history without scrolling the terminal (",[410,421,422],{},"tail -f .evlog\u002Flogs\u002F2026-03-14.jsonl",")",[402,425,426,429],{},[405,427,428],{},"Production backup"," - combine with a network drain (Axiom, OTLP) for local fallback",[431,432,435,438,462],"prompt",{":actions":433,"description":434,"icon":342},"[\"copy\",\"cursor\",\"windsurf\"]","Add the file system drain adapter",[395,436,437],{},"Add the file system drain adapter to write evlog wide events locally as NDJSON files.",[439,440,441,444,447,450,453,456,459],"ol",{},[402,442,443],{},"Identify which framework I'm using and follow its evlog integration pattern",[402,445,446],{},"Install evlog if not already installed",[402,448,449],{},"Import createFsDrain from 'evlog\u002Ffs'",[402,451,452],{},"Wire createFsDrain() into my framework's drain configuration",[402,454,455],{},"Logs are written to .evlog\u002Flogs\u002F by default (one file per day, auto .gitignore)",[402,457,458],{},"Optionally configure dir, maxFiles, maxSizePerFile, or pretty options",[402,460,461],{},"Test by triggering a request and checking .evlog\u002Flogs\u002F*.jsonl",[395,463,464,465,471,472],{},"Adapter docs: ",[466,467,468],"a",{"href":468,"rel":469},"https:\u002F\u002Fwww.evlog.dev\u002Fadapters\u002Fself-hosted\u002Ffs",[470],"nofollow","\nFramework setup: ",[466,473,474],{"href":474,"rel":475},"https:\u002F\u002Fwww.evlog.dev\u002Fframeworks",[470],[477,478,15],"h2",{"id":479},"installation",[395,481,482],{},"The File System adapter comes bundled with evlog:",[484,485,491],"pre",{"className":486,"code":487,"filename":488,"language":489,"meta":490,"style":490},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createFsDrain } from 'evlog\u002Ffs'\n","src\u002Findex.ts","typescript","",[410,492,493],{"__ignoreMap":490},[494,495,498,502,506,510,513,516,519,523],"span",{"class":496,"line":497},"line",1,[494,499,501],{"class":500},"s7zQu","import",[494,503,505],{"class":504},"sMK4o"," {",[494,507,509],{"class":508},"sTEyZ"," createFsDrain",[494,511,512],{"class":504}," }",[494,514,515],{"class":500}," from",[494,517,518],{"class":504}," '",[494,520,522],{"class":521},"sfazB","evlog\u002Ffs",[494,524,525],{"class":504},"'\n",[477,527,20],{"id":528},"quick-start",[395,530,531],{},"No credentials or environment variables needed. Just wire the drain to your framework:",[533,534,535,649,780,842,896,955,1009,1062],"code-group",{},[484,536,539],{"className":486,"code":537,"filename":538,"language":489,"meta":490,"style":490},"\u002F\u002F server\u002Fplugins\u002Fevlog-drain.ts\nimport { createFsDrain } from 'evlog\u002Ffs'\n\nexport default defineNitroPlugin((nitroApp) => {\n  nitroApp.hooks.hook('evlog:drain', createFsDrain())\n})\n","Nuxt \u002F Nitro",[410,540,541,547,566,573,604,640],{"__ignoreMap":490},[494,542,543],{"class":496,"line":497},[494,544,546],{"class":545},"sHwdD","\u002F\u002F server\u002Fplugins\u002Fevlog-drain.ts\n",[494,548,550,552,554,556,558,560,562,564],{"class":496,"line":549},2,[494,551,501],{"class":500},[494,553,505],{"class":504},[494,555,509],{"class":508},[494,557,512],{"class":504},[494,559,515],{"class":500},[494,561,518],{"class":504},[494,563,522],{"class":521},[494,565,525],{"class":504},[494,567,569],{"class":496,"line":568},3,[494,570,572],{"emptyLinePlaceholder":571},true,"\n",[494,574,576,579,582,586,589,591,595,597,601],{"class":496,"line":575},4,[494,577,578],{"class":500},"export",[494,580,581],{"class":500}," default",[494,583,585],{"class":584},"s2Zo4"," defineNitroPlugin",[494,587,588],{"class":508},"(",[494,590,588],{"class":504},[494,592,594],{"class":593},"sHdIc","nitroApp",[494,596,423],{"class":504},[494,598,600],{"class":599},"spNyl"," =>",[494,602,603],{"class":504}," {\n",[494,605,607,610,613,616,618,621,624,627,630,632,635,637],{"class":496,"line":606},5,[494,608,609],{"class":508},"  nitroApp",[494,611,612],{"class":504},".",[494,614,615],{"class":508},"hooks",[494,617,612],{"class":504},[494,619,620],{"class":584},"hook",[494,622,588],{"class":623},"swJcz",[494,625,626],{"class":504},"'",[494,628,629],{"class":521},"evlog:drain",[494,631,626],{"class":504},[494,633,634],{"class":504},",",[494,636,509],{"class":584},[494,638,639],{"class":623},"())\n",[494,641,643,646],{"class":496,"line":642},6,[494,644,645],{"class":504},"}",[494,647,648],{"class":508},")\n",[484,650,652],{"className":486,"code":651,"filename":212,"language":489,"meta":490,"style":490},"\u002F\u002F lib\u002Fevlog.ts\nimport { createEvlog } from 'evlog\u002Fnext'\nimport { createFsDrain } from 'evlog\u002Ffs'\n\nexport const { withEvlog, useLogger, log, createError } = createEvlog({\n  service: 'my-app',\n  drain: createFsDrain(),\n})\n",[410,653,654,659,679,697,701,740,758,773],{"__ignoreMap":490},[494,655,656],{"class":496,"line":497},[494,657,658],{"class":545},"\u002F\u002F lib\u002Fevlog.ts\n",[494,660,661,663,665,668,670,672,674,677],{"class":496,"line":549},[494,662,501],{"class":500},[494,664,505],{"class":504},[494,666,667],{"class":508}," createEvlog",[494,669,512],{"class":504},[494,671,515],{"class":500},[494,673,518],{"class":504},[494,675,676],{"class":521},"evlog\u002Fnext",[494,678,525],{"class":504},[494,680,681,683,685,687,689,691,693,695],{"class":496,"line":568},[494,682,501],{"class":500},[494,684,505],{"class":504},[494,686,509],{"class":508},[494,688,512],{"class":504},[494,690,515],{"class":500},[494,692,518],{"class":504},[494,694,522],{"class":521},[494,696,525],{"class":504},[494,698,699],{"class":496,"line":575},[494,700,572],{"emptyLinePlaceholder":571},[494,702,703,705,708,710,713,715,718,720,723,725,728,730,733,735,737],{"class":496,"line":606},[494,704,578],{"class":500},[494,706,707],{"class":599}," const",[494,709,505],{"class":504},[494,711,712],{"class":508}," withEvlog",[494,714,634],{"class":504},[494,716,717],{"class":508}," useLogger",[494,719,634],{"class":504},[494,721,722],{"class":508}," log",[494,724,634],{"class":504},[494,726,727],{"class":508}," createError ",[494,729,645],{"class":504},[494,731,732],{"class":504}," =",[494,734,667],{"class":584},[494,736,588],{"class":508},[494,738,739],{"class":504},"{\n",[494,741,742,745,748,750,753,755],{"class":496,"line":642},[494,743,744],{"class":623},"  service",[494,746,747],{"class":504},":",[494,749,518],{"class":504},[494,751,752],{"class":521},"my-app",[494,754,626],{"class":504},[494,756,757],{"class":504},",\n",[494,759,761,764,766,768,771],{"class":496,"line":760},7,[494,762,763],{"class":623},"  drain",[494,765,747],{"class":504},[494,767,509],{"class":584},[494,769,770],{"class":508},"()",[494,772,757],{"class":504},[494,774,776,778],{"class":496,"line":775},8,[494,777,645],{"class":504},[494,779,648],{"class":508},[484,781,783],{"className":486,"code":782,"filename":242,"language":489,"meta":490,"style":490},"import { createFsDrain } from 'evlog\u002Ffs'\n\napp.use(evlog({ drain: createFsDrain() }))\n",[410,784,785,803,807],{"__ignoreMap":490},[494,786,787,789,791,793,795,797,799,801],{"class":496,"line":497},[494,788,501],{"class":500},[494,790,505],{"class":504},[494,792,509],{"class":508},[494,794,512],{"class":504},[494,796,515],{"class":500},[494,798,518],{"class":504},[494,800,522],{"class":521},[494,802,525],{"class":504},[494,804,805],{"class":496,"line":549},[494,806,572],{"emptyLinePlaceholder":571},[494,808,809,812,814,817,819,822,824,827,830,832,834,837,839],{"class":496,"line":568},[494,810,811],{"class":508},"app",[494,813,612],{"class":504},[494,815,816],{"class":584},"use",[494,818,588],{"class":508},[494,820,821],{"class":584},"evlog",[494,823,588],{"class":508},[494,825,826],{"class":504},"{",[494,828,829],{"class":623}," drain",[494,831,747],{"class":504},[494,833,509],{"class":584},[494,835,836],{"class":508},"() ",[494,838,645],{"class":504},[494,840,841],{"class":508},"))\n",[484,843,844],{"className":486,"code":782,"filename":237,"language":489,"meta":490,"style":490},[410,845,846,864,868],{"__ignoreMap":490},[494,847,848,850,852,854,856,858,860,862],{"class":496,"line":497},[494,849,501],{"class":500},[494,851,505],{"class":504},[494,853,509],{"class":508},[494,855,512],{"class":504},[494,857,515],{"class":500},[494,859,518],{"class":504},[494,861,522],{"class":521},[494,863,525],{"class":504},[494,865,866],{"class":496,"line":549},[494,867,572],{"emptyLinePlaceholder":571},[494,869,870,872,874,876,878,880,882,884,886,888,890,892,894],{"class":496,"line":568},[494,871,811],{"class":508},[494,873,612],{"class":504},[494,875,816],{"class":584},[494,877,588],{"class":508},[494,879,821],{"class":584},[494,881,588],{"class":508},[494,883,826],{"class":504},[494,885,829],{"class":623},[494,887,747],{"class":504},[494,889,509],{"class":584},[494,891,836],{"class":508},[494,893,645],{"class":504},[494,895,841],{"class":508},[484,897,899],{"className":486,"code":898,"filename":247,"language":489,"meta":490,"style":490},"import { createFsDrain } from 'evlog\u002Ffs'\n\nawait app.register(evlog, { drain: createFsDrain() })\n",[410,900,901,919,923],{"__ignoreMap":490},[494,902,903,905,907,909,911,913,915,917],{"class":496,"line":497},[494,904,501],{"class":500},[494,906,505],{"class":504},[494,908,509],{"class":508},[494,910,512],{"class":504},[494,912,515],{"class":500},[494,914,518],{"class":504},[494,916,522],{"class":521},[494,918,525],{"class":504},[494,920,921],{"class":496,"line":549},[494,922,572],{"emptyLinePlaceholder":571},[494,924,925,928,931,933,936,939,941,943,945,947,949,951,953],{"class":496,"line":568},[494,926,927],{"class":500},"await",[494,929,930],{"class":508}," app",[494,932,612],{"class":504},[494,934,935],{"class":584},"register",[494,937,938],{"class":508},"(evlog",[494,940,634],{"class":504},[494,942,505],{"class":504},[494,944,829],{"class":623},[494,946,747],{"class":504},[494,948,509],{"class":584},[494,950,836],{"class":508},[494,952,645],{"class":504},[494,954,648],{"class":508},[484,956,957],{"className":486,"code":782,"filename":252,"language":489,"meta":490,"style":490},[410,958,959,977,981],{"__ignoreMap":490},[494,960,961,963,965,967,969,971,973,975],{"class":496,"line":497},[494,962,501],{"class":500},[494,964,505],{"class":504},[494,966,509],{"class":508},[494,968,512],{"class":504},[494,970,515],{"class":500},[494,972,518],{"class":504},[494,974,522],{"class":521},[494,976,525],{"class":504},[494,978,979],{"class":496,"line":549},[494,980,572],{"emptyLinePlaceholder":571},[494,982,983,985,987,989,991,993,995,997,999,1001,1003,1005,1007],{"class":496,"line":568},[494,984,811],{"class":508},[494,986,612],{"class":504},[494,988,816],{"class":584},[494,990,588],{"class":508},[494,992,821],{"class":584},[494,994,588],{"class":508},[494,996,826],{"class":504},[494,998,829],{"class":623},[494,1000,747],{"class":504},[494,1002,509],{"class":584},[494,1004,836],{"class":508},[494,1006,645],{"class":504},[494,1008,841],{"class":508},[484,1010,1012],{"className":486,"code":1011,"filename":232,"language":489,"meta":490,"style":490},"import { createFsDrain } from 'evlog\u002Ffs'\n\nEvlogModule.forRoot({ drain: createFsDrain() })\n",[410,1013,1014,1032,1036],{"__ignoreMap":490},[494,1015,1016,1018,1020,1022,1024,1026,1028,1030],{"class":496,"line":497},[494,1017,501],{"class":500},[494,1019,505],{"class":504},[494,1021,509],{"class":508},[494,1023,512],{"class":504},[494,1025,515],{"class":500},[494,1027,518],{"class":504},[494,1029,522],{"class":521},[494,1031,525],{"class":504},[494,1033,1034],{"class":496,"line":549},[494,1035,572],{"emptyLinePlaceholder":571},[494,1037,1038,1041,1043,1046,1048,1050,1052,1054,1056,1058,1060],{"class":496,"line":568},[494,1039,1040],{"class":508},"EvlogModule",[494,1042,612],{"class":504},[494,1044,1045],{"class":584},"forRoot",[494,1047,588],{"class":508},[494,1049,826],{"class":504},[494,1051,829],{"class":623},[494,1053,747],{"class":504},[494,1055,509],{"class":584},[494,1057,836],{"class":508},[494,1059,645],{"class":504},[494,1061,648],{"class":508},[484,1063,1065],{"className":486,"code":1064,"filename":267,"language":489,"meta":490,"style":490},"import { createFsDrain } from 'evlog\u002Ffs'\n\ninitLogger({ drain: createFsDrain() })\n",[410,1066,1067,1085,1089],{"__ignoreMap":490},[494,1068,1069,1071,1073,1075,1077,1079,1081,1083],{"class":496,"line":497},[494,1070,501],{"class":500},[494,1072,505],{"class":504},[494,1074,509],{"class":508},[494,1076,512],{"class":504},[494,1078,515],{"class":500},[494,1080,518],{"class":504},[494,1082,522],{"class":521},[494,1084,525],{"class":504},[494,1086,1087],{"class":496,"line":549},[494,1088,572],{"emptyLinePlaceholder":571},[494,1090,1091,1094,1096,1098,1100,1102,1104,1106,1108],{"class":496,"line":568},[494,1092,1093],{"class":584},"initLogger",[494,1095,588],{"class":508},[494,1097,826],{"class":504},[494,1099,829],{"class":623},[494,1101,747],{"class":504},[494,1103,509],{"class":584},[494,1105,836],{"class":508},[494,1107,645],{"class":504},[494,1109,648],{"class":508},[395,1111,1112,1113,1115],{},"Logs start appearing in ",[410,1114,412],{}," immediately.",[477,1117,1119],{"id":1118},"file-structure","File Structure",[484,1121,1127],{"className":1122,"code":1124,"filename":1125,"language":1126,"meta":490},[1123],"language-text",".evlog\u002F\n  logs\u002F\n    2026-03-14.jsonl    ← one file per day\n    2026-03-13.jsonl\n    2026-03-12.jsonl\n",".evlog\u002Flogs directory layout","text",[410,1128,1124],{"__ignoreMap":490},[395,1130,1131,1132,1135],{},"Each ",[410,1133,1134],{},".jsonl"," file contains one JSON object per line (NDJSON format), making it easy to parse, grep, and stream.",[1137,1138,1141,1142,1145,1146,1149,1150,1153],"callout",{"color":1139,"icon":1140},"success","i-lucide-git-branch","A ",[410,1143,1144],{},".gitignore"," is automatically created on first write, inside the ",[410,1147,1148],{},".evlog\u002F"," ancestor directory when present or in the configured ",[410,1151,1152],{},"dir"," otherwise. Log files are never committed to version control.",[477,1155,166],{"id":1156},"configuration",[1158,1159,80],"h3",{"id":1160},"options",[1162,1163,1164,1183],"table",{},[1165,1166,1167],"thead",{},[1168,1169,1170,1174,1177,1180],"tr",{},[1171,1172,1173],"th",{},"Option",[1171,1175,1176],{},"Type",[1171,1178,1179],{},"Default",[1171,1181,1182],{},"Description",[1184,1185,1186,1206,1226,1244],"tbody",{},[1168,1187,1188,1193,1198,1203],{},[1189,1190,1191],"td",{},[410,1192,1152],{},[1189,1194,1195],{},[410,1196,1197],{},"string",[1189,1199,1200],{},[410,1201,1202],{},"'.evlog\u002Flogs'",[1189,1204,1205],{},"Directory for log files",[1168,1207,1208,1213,1218,1223],{},[1189,1209,1210],{},[410,1211,1212],{},"maxFiles",[1189,1214,1215],{},[410,1216,1217],{},"number",[1189,1219,1220],{},[410,1221,1222],{},"undefined",[1189,1224,1225],{},"Max files to keep (auto-deletes oldest)",[1168,1227,1228,1233,1237,1241],{},[1189,1229,1230],{},[410,1231,1232],{},"maxSizePerFile",[1189,1234,1235],{},[410,1236,1217],{},[1189,1238,1239],{},[410,1240,1222],{},[1189,1242,1243],{},"Max bytes per file before rotating",[1168,1245,1246,1251,1256,1261],{},[1189,1247,1248],{},[410,1249,1250],{},"pretty",[1189,1252,1253],{},[410,1254,1255],{},"boolean",[1189,1257,1258],{},[410,1259,1260],{},"false",[1189,1262,1263],{},"Pretty-print JSON (multi-line, readable)",[1158,1265,1267],{"id":1266},"examples","Examples",[484,1269,1272],{"className":486,"code":1270,"filename":1271,"language":489,"meta":490,"style":490},"\u002F\u002F Keep only the last 7 days of logs\ncreateFsDrain({ maxFiles: 7 })\n\n\u002F\u002F Rotate files at 10MB, keep 30 files\ncreateFsDrain({\n  maxSizePerFile: 10 * 1024 * 1024,\n  maxFiles: 30,\n})\n\n\u002F\u002F Pretty-print for human reading\ncreateFsDrain({ pretty: true })\n\n\u002F\u002F Custom directory\ncreateFsDrain({ dir: '\u002Fvar\u002Flog\u002Fmyapp' })\n","server\u002Fplugins\u002Fevlog-drain.ts",[410,1273,1274,1279,1301,1305,1310,1318,1340,1352,1358,1363,1369,1391,1396,1402],{"__ignoreMap":490},[494,1275,1276],{"class":496,"line":497},[494,1277,1278],{"class":545},"\u002F\u002F Keep only the last 7 days of logs\n",[494,1280,1281,1284,1286,1288,1291,1293,1297,1299],{"class":496,"line":549},[494,1282,1283],{"class":584},"createFsDrain",[494,1285,588],{"class":508},[494,1287,826],{"class":504},[494,1289,1290],{"class":623}," maxFiles",[494,1292,747],{"class":504},[494,1294,1296],{"class":1295},"sbssI"," 7",[494,1298,512],{"class":504},[494,1300,648],{"class":508},[494,1302,1303],{"class":496,"line":568},[494,1304,572],{"emptyLinePlaceholder":571},[494,1306,1307],{"class":496,"line":575},[494,1308,1309],{"class":545},"\u002F\u002F Rotate files at 10MB, keep 30 files\n",[494,1311,1312,1314,1316],{"class":496,"line":606},[494,1313,1283],{"class":584},[494,1315,588],{"class":508},[494,1317,739],{"class":504},[494,1319,1320,1323,1325,1328,1331,1334,1336,1338],{"class":496,"line":642},[494,1321,1322],{"class":623},"  maxSizePerFile",[494,1324,747],{"class":504},[494,1326,1327],{"class":1295}," 10",[494,1329,1330],{"class":504}," *",[494,1332,1333],{"class":1295}," 1024",[494,1335,1330],{"class":504},[494,1337,1333],{"class":1295},[494,1339,757],{"class":504},[494,1341,1342,1345,1347,1350],{"class":496,"line":760},[494,1343,1344],{"class":623},"  maxFiles",[494,1346,747],{"class":504},[494,1348,1349],{"class":1295}," 30",[494,1351,757],{"class":504},[494,1353,1354,1356],{"class":496,"line":775},[494,1355,645],{"class":504},[494,1357,648],{"class":508},[494,1359,1361],{"class":496,"line":1360},9,[494,1362,572],{"emptyLinePlaceholder":571},[494,1364,1366],{"class":496,"line":1365},10,[494,1367,1368],{"class":545},"\u002F\u002F Pretty-print for human reading\n",[494,1370,1372,1374,1376,1378,1381,1383,1387,1389],{"class":496,"line":1371},11,[494,1373,1283],{"class":584},[494,1375,588],{"class":508},[494,1377,826],{"class":504},[494,1379,1380],{"class":623}," pretty",[494,1382,747],{"class":504},[494,1384,1386],{"class":1385},"sfNiH"," true",[494,1388,512],{"class":504},[494,1390,648],{"class":508},[494,1392,1394],{"class":496,"line":1393},12,[494,1395,572],{"emptyLinePlaceholder":571},[494,1397,1399],{"class":496,"line":1398},13,[494,1400,1401],{"class":545},"\u002F\u002F Custom directory\n",[494,1403,1405,1407,1409,1411,1414,1416,1418,1421,1423,1425],{"class":496,"line":1404},14,[494,1406,1283],{"class":584},[494,1408,588],{"class":508},[494,1410,826],{"class":504},[494,1412,1413],{"class":623}," dir",[494,1415,747],{"class":504},[494,1417,518],{"class":504},[494,1419,1420],{"class":521},"\u002Fvar\u002Flog\u002Fmyapp",[494,1422,626],{"class":504},[494,1424,512],{"class":504},[494,1426,648],{"class":508},[1158,1428,1430],{"id":1429},"file-rotation","File Rotation",[395,1432,1433,1434,1437,1438,1440],{},"By default, a new file is created each day (",[410,1435,1436],{},"2026-03-14.jsonl","). When ",[410,1439,1232],{}," is set, the adapter creates suffixed files when the current file exceeds the limit:",[484,1442,1446],{"className":1443,"code":1444,"filename":1445,"language":1126,"meta":490},[1123],".evlog\u002Flogs\u002F\n  2026-03-14.jsonl      ← base file (full)\n  2026-03-14.1.jsonl    ← first rotation\n  2026-03-14.2.jsonl    ← second rotation\n","Rotated log files",[410,1447,1444],{"__ignoreMap":490},[1158,1449,1451],{"id":1450},"cleanup","Cleanup",[395,1453,1454,1455,1457,1458,1460],{},"When ",[410,1456,1212],{}," is set, the adapter automatically deletes the oldest ",[410,1459,1134],{}," files after each write, keeping only the most recent files.",[477,1462,1464],{"id":1463},"combining-with-network-drains","Combining with Network Drains",[395,1466,1467],{},"Use the FS adapter alongside a network drain for local backup:",[484,1469,1471],{"className":486,"code":1470,"filename":1271,"language":489,"meta":490,"style":490},"import { createFsDrain } from 'evlog\u002Ffs'\nimport { createAxiomDrain } from 'evlog\u002Faxiom'\n\nconst fs = createFsDrain({ maxFiles: 7 })\nconst axiom = createAxiomDrain()\n\nconst drain = async (ctx) => {\n  await Promise.allSettled([fs(ctx), axiom(ctx)])\n}\n",[410,1472,1473,1491,1511,1515,1542,1556,1560,1584,1622],{"__ignoreMap":490},[494,1474,1475,1477,1479,1481,1483,1485,1487,1489],{"class":496,"line":497},[494,1476,501],{"class":500},[494,1478,505],{"class":504},[494,1480,509],{"class":508},[494,1482,512],{"class":504},[494,1484,515],{"class":500},[494,1486,518],{"class":504},[494,1488,522],{"class":521},[494,1490,525],{"class":504},[494,1492,1493,1495,1497,1500,1502,1504,1506,1509],{"class":496,"line":549},[494,1494,501],{"class":500},[494,1496,505],{"class":504},[494,1498,1499],{"class":508}," createAxiomDrain",[494,1501,512],{"class":504},[494,1503,515],{"class":500},[494,1505,518],{"class":504},[494,1507,1508],{"class":521},"evlog\u002Faxiom",[494,1510,525],{"class":504},[494,1512,1513],{"class":496,"line":568},[494,1514,572],{"emptyLinePlaceholder":571},[494,1516,1517,1520,1523,1526,1528,1530,1532,1534,1536,1538,1540],{"class":496,"line":575},[494,1518,1519],{"class":599},"const",[494,1521,1522],{"class":508}," fs ",[494,1524,1525],{"class":504},"=",[494,1527,509],{"class":584},[494,1529,588],{"class":508},[494,1531,826],{"class":504},[494,1533,1290],{"class":623},[494,1535,747],{"class":504},[494,1537,1296],{"class":1295},[494,1539,512],{"class":504},[494,1541,648],{"class":508},[494,1543,1544,1546,1549,1551,1553],{"class":496,"line":606},[494,1545,1519],{"class":599},[494,1547,1548],{"class":508}," axiom ",[494,1550,1525],{"class":504},[494,1552,1499],{"class":584},[494,1554,1555],{"class":508},"()\n",[494,1557,1558],{"class":496,"line":642},[494,1559,572],{"emptyLinePlaceholder":571},[494,1561,1562,1564,1567,1569,1572,1575,1578,1580,1582],{"class":496,"line":760},[494,1563,1519],{"class":599},[494,1565,1566],{"class":508}," drain ",[494,1568,1525],{"class":504},[494,1570,1571],{"class":599}," async",[494,1573,1574],{"class":504}," (",[494,1576,1577],{"class":593},"ctx",[494,1579,423],{"class":504},[494,1581,600],{"class":599},[494,1583,603],{"class":504},[494,1585,1586,1589,1593,1595,1598,1601,1604,1606,1608,1610,1612,1615,1617,1619],{"class":496,"line":775},[494,1587,1588],{"class":500},"  await",[494,1590,1592],{"class":1591},"sBMFI"," Promise",[494,1594,612],{"class":504},[494,1596,1597],{"class":584},"allSettled",[494,1599,1600],{"class":623},"([",[494,1602,1603],{"class":584},"fs",[494,1605,588],{"class":623},[494,1607,1577],{"class":508},[494,1609,423],{"class":623},[494,1611,634],{"class":504},[494,1613,1614],{"class":584}," axiom",[494,1616,588],{"class":623},[494,1618,1577],{"class":508},[494,1620,1621],{"class":623},")])\n",[494,1623,1624],{"class":496,"line":1360},[494,1625,1626],{"class":504},"}\n",[477,1628,1630],{"id":1629},"querying-logs","Querying Logs",[1158,1632,1634],{"id":1633},"stream-in-real-time","Stream in real-time",[484,1636,1641],{"className":1637,"code":1638,"filename":1639,"language":1640,"meta":490,"style":490},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","tail -f .evlog\u002Flogs\u002F2026-03-14.jsonl\n","Terminal","bash",[410,1642,1643],{"__ignoreMap":490},[494,1644,1645,1648,1651],{"class":496,"line":497},[494,1646,1647],{"class":1591},"tail",[494,1649,1650],{"class":521}," -f",[494,1652,1653],{"class":521}," .evlog\u002Flogs\u002F2026-03-14.jsonl\n",[1158,1655,1657],{"id":1656},"search-with-jq","Search with jq",[484,1659,1661],{"className":1637,"code":1660,"filename":1639,"language":1640,"meta":490,"style":490},"# Find errors\ncat .evlog\u002Flogs\u002F2026-03-14.jsonl | jq 'select(.level == \"error\")'\n\n# Slow requests (duration is a formatted string like \"706ms\" or \"1.23s\")\ncat .evlog\u002Flogs\u002F2026-03-14.jsonl | jq 'select(.duration | test(\"^[0-9.]+s\"))'\n\n# Requests by path\ncat .evlog\u002Flogs\u002F2026-03-14.jsonl | jq 'select(.path == \"\u002Fapi\u002Fcheckout\")'\n",[410,1662,1663,1668,1689,1693,1698,1715,1719,1724],{"__ignoreMap":490},[494,1664,1665],{"class":496,"line":497},[494,1666,1667],{"class":545},"# Find errors\n",[494,1669,1670,1673,1676,1679,1682,1684,1687],{"class":496,"line":549},[494,1671,1672],{"class":1591},"cat",[494,1674,1675],{"class":521}," .evlog\u002Flogs\u002F2026-03-14.jsonl",[494,1677,1678],{"class":504}," |",[494,1680,1681],{"class":1591}," jq",[494,1683,518],{"class":504},[494,1685,1686],{"class":521},"select(.level == \"error\")",[494,1688,525],{"class":504},[494,1690,1691],{"class":496,"line":568},[494,1692,572],{"emptyLinePlaceholder":571},[494,1694,1695],{"class":496,"line":575},[494,1696,1697],{"class":545},"# Slow requests (duration is a formatted string like \"706ms\" or \"1.23s\")\n",[494,1699,1700,1702,1704,1706,1708,1710,1713],{"class":496,"line":606},[494,1701,1672],{"class":1591},[494,1703,1675],{"class":521},[494,1705,1678],{"class":504},[494,1707,1681],{"class":1591},[494,1709,518],{"class":504},[494,1711,1712],{"class":521},"select(.duration | test(\"^[0-9.]+s\"))",[494,1714,525],{"class":504},[494,1716,1717],{"class":496,"line":642},[494,1718,572],{"emptyLinePlaceholder":571},[494,1720,1721],{"class":496,"line":760},[494,1722,1723],{"class":545},"# Requests by path\n",[494,1725,1726,1728,1730,1732,1734,1736,1739],{"class":496,"line":775},[494,1727,1672],{"class":1591},[494,1729,1675],{"class":521},[494,1731,1678],{"class":504},[494,1733,1681],{"class":1591},[494,1735,518],{"class":504},[494,1737,1738],{"class":521},"select(.path == \"\u002Fapi\u002Fcheckout\")",[494,1740,525],{"class":504},[1158,1742,1744],{"id":1743},"search-with-grep","Search with grep",[484,1746,1748],{"className":1637,"code":1747,"filename":1639,"language":1640,"meta":490,"style":490},"# Find all errors\ngrep '\"level\":\"error\"' .evlog\u002Flogs\u002F2026-03-14.jsonl\n\n# Find by request ID\ngrep 'req_abc123' .evlog\u002Flogs\u002F*.jsonl\n",[410,1749,1750,1755,1769,1773,1778],{"__ignoreMap":490},[494,1751,1752],{"class":496,"line":497},[494,1753,1754],{"class":545},"# Find all errors\n",[494,1756,1757,1760,1762,1765,1767],{"class":496,"line":549},[494,1758,1759],{"class":1591},"grep",[494,1761,518],{"class":504},[494,1763,1764],{"class":521},"\"level\":\"error\"",[494,1766,626],{"class":504},[494,1768,1653],{"class":521},[494,1770,1771],{"class":496,"line":568},[494,1772,572],{"emptyLinePlaceholder":571},[494,1774,1775],{"class":496,"line":575},[494,1776,1777],{"class":545},"# Find by request ID\n",[494,1779,1780,1782,1784,1787,1789,1792,1795],{"class":496,"line":606},[494,1781,1759],{"class":1591},[494,1783,518],{"class":504},[494,1785,1786],{"class":521},"req_abc123",[494,1788,626],{"class":504},[494,1790,1791],{"class":521}," .evlog\u002Flogs\u002F",[494,1793,1794],{"class":508},"*",[494,1796,1797],{"class":521},".jsonl\n",[477,1799,1801],{"id":1800},"direct-api-usage","Direct API Usage",[395,1803,1804],{},"For advanced use cases, use the lower-level write functions:",[484,1806,1808],{"className":486,"code":1807,"filename":488,"language":489,"meta":490,"style":490},"import { writeToFs, writeBatchToFs } from 'evlog\u002Ffs'\n\nawait writeToFs(event, {\n  dir: '.evlog\u002Flogs',\n  pretty: false,\n})\n\nawait writeBatchToFs(events, {\n  dir: '.evlog\u002Flogs',\n  pretty: false,\n})\n",[410,1809,1810,1834,1838,1851,1867,1879,1885,1889,1902,1916,1926],{"__ignoreMap":490},[494,1811,1812,1814,1816,1819,1821,1824,1826,1828,1830,1832],{"class":496,"line":497},[494,1813,501],{"class":500},[494,1815,505],{"class":504},[494,1817,1818],{"class":508}," writeToFs",[494,1820,634],{"class":504},[494,1822,1823],{"class":508}," writeBatchToFs",[494,1825,512],{"class":504},[494,1827,515],{"class":500},[494,1829,518],{"class":504},[494,1831,522],{"class":521},[494,1833,525],{"class":504},[494,1835,1836],{"class":496,"line":549},[494,1837,572],{"emptyLinePlaceholder":571},[494,1839,1840,1842,1844,1847,1849],{"class":496,"line":568},[494,1841,927],{"class":500},[494,1843,1818],{"class":584},[494,1845,1846],{"class":508},"(event",[494,1848,634],{"class":504},[494,1850,603],{"class":504},[494,1852,1853,1856,1858,1860,1863,1865],{"class":496,"line":575},[494,1854,1855],{"class":623},"  dir",[494,1857,747],{"class":504},[494,1859,518],{"class":504},[494,1861,1862],{"class":521},".evlog\u002Flogs",[494,1864,626],{"class":504},[494,1866,757],{"class":504},[494,1868,1869,1872,1874,1877],{"class":496,"line":606},[494,1870,1871],{"class":623},"  pretty",[494,1873,747],{"class":504},[494,1875,1876],{"class":1385}," false",[494,1878,757],{"class":504},[494,1880,1881,1883],{"class":496,"line":642},[494,1882,645],{"class":504},[494,1884,648],{"class":508},[494,1886,1887],{"class":496,"line":760},[494,1888,572],{"emptyLinePlaceholder":571},[494,1890,1891,1893,1895,1898,1900],{"class":496,"line":775},[494,1892,927],{"class":500},[494,1894,1823],{"class":584},[494,1896,1897],{"class":508},"(events",[494,1899,634],{"class":504},[494,1901,603],{"class":504},[494,1903,1904,1906,1908,1910,1912,1914],{"class":496,"line":1360},[494,1905,1855],{"class":623},[494,1907,747],{"class":504},[494,1909,518],{"class":504},[494,1911,1862],{"class":521},[494,1913,626],{"class":504},[494,1915,757],{"class":504},[494,1917,1918,1920,1922,1924],{"class":496,"line":1365},[494,1919,1871],{"class":623},[494,1921,747],{"class":504},[494,1923,1876],{"class":1385},[494,1925,757],{"class":504},[494,1927,1928,1930],{"class":496,"line":1371},[494,1929,645],{"class":504},[494,1931,648],{"class":508},[477,1933,1935],{"id":1934},"ai-log-analysis","AI Log Analysis",[395,1937,1938,1939,1945],{},"The file system drain pairs with the ",[466,1940,1941,1944],{"href":26},[410,1942,1943],{},"analyze-logs"," agent skill",". When installed, your AI assistant can read the NDJSON logs directly to debug errors, trace requests, and investigate performance without any external tools.",[477,1947,1949],{"id":1948},"next-steps","Next Steps",[399,1951,1952,1957,1963,1968],{},[402,1953,1954,1956],{},[466,1955,25],{"href":26}," - Let AI analyze your logs",[402,1958,1959,1962],{},[466,1960,1961],{"href":300},"Axiom Adapter"," - Send logs to Axiom for querying and dashboards",[402,1964,1965,1967],{},[466,1966,354],{"href":355}," - Add batching and retry to any drain",[402,1969,1970,1972],{},[466,1971,364],{"href":365}," - Build your own adapter",[1974,1975,1976],"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 .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);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}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 .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":490,"searchDepth":549,"depth":549,"links":1978},[1979,1980,1981,1982,1988,1989,1994,1995,1996],{"id":479,"depth":549,"text":15},{"id":528,"depth":549,"text":20},{"id":1118,"depth":549,"text":1119},{"id":1156,"depth":549,"text":166,"children":1983},[1984,1985,1986,1987],{"id":1160,"depth":568,"text":80},{"id":1266,"depth":568,"text":1267},{"id":1429,"depth":568,"text":1430},{"id":1450,"depth":568,"text":1451},{"id":1463,"depth":549,"text":1464},{"id":1629,"depth":549,"text":1630,"children":1990},[1991,1992,1993],{"id":1633,"depth":568,"text":1634},{"id":1656,"depth":568,"text":1657},{"id":1743,"depth":568,"text":1744},{"id":1800,"depth":549,"text":1801},{"id":1934,"depth":549,"text":1935},{"id":1948,"depth":549,"text":1949},"Write wide events to the local file system as NDJSON for local debugging, AI agent integration, and production backup.","md",[2000,2007],{"label":2001,"icon":2002,"to":2003,"target":2004,"color":2005,"variant":2006},"NDJSON Format","i-lucide-external-link","https:\u002F\u002Fgithub.com\u002Fndjson\u002Fndjson-spec","_blank","neutral","subtle",{"label":1961,"icon":302,"to":300,"color":2005,"variant":2006},{},{"title":339,"icon":342},{"title":390,"description":1997},"T-NSInoBfsszInuemgpjhveYPzh_-TPNDElWBkmM_fo",[2013,2015],{"title":329,"path":330,"stem":331,"description":2014,"icon":332,"children":-1},"Send wide events to HyperDX via OTLP\u002FHTTP using HyperDX’s documented OpenTelemetry endpoint and authorization header. Zero-config setup with environment variables.",{"title":344,"path":345,"stem":346,"description":2016,"icon":347,"children":-1},"Self-hosted log retention for evlog using NuxtHub database storage. Store, query, and automatically clean up your structured logs with zero external dependencies.",1777901597559]