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