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