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