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