[{"data":1,"prerenderedAt":1090},["ShallowReactive",2],{"navigation_docs":3,"-build-on-top-fs-reader":454,"-build-on-top-fs-reader-surround":1085},[4,35,159,201,289,352,438],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Getting Started","\u002Fgetting-started","1.getting-started",[9,14,19,24,29],{"title":10,"path":11,"stem":12,"icon":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-info",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Quick Start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start","i-lucide-zap",{"title":25,"path":26,"stem":27,"icon":28},"Agent Skills","\u002Fgetting-started\u002Fagent-skills","1.getting-started\u002F4.agent-skills","i-lucide-sparkles",{"title":30,"path":31,"stem":32,"icon":33},"vs Other Loggers","\u002Fgetting-started\u002Fvs-other-loggers","1.getting-started\u002F5.vs-other-loggers","i-lucide-scale",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Logging","\u002Flogging","2.logging",[40,45,50,55,60,65,70,99,127],{"title":41,"path":42,"stem":43,"icon":44},"Overview","\u002Flogging\u002Foverview","2.logging\u002F0.overview","i-lucide-list",{"title":46,"path":47,"stem":48,"icon":49},"Simple Logging","\u002Flogging\u002Fsimple-logging","2.logging\u002F1.simple-logging","i-lucide-terminal",{"title":51,"path":52,"stem":53,"icon":54},"Wide Events","\u002Flogging\u002Fwide-events","2.logging\u002F2.wide-events","i-lucide-layers",{"title":56,"path":57,"stem":58,"icon":59},"Structured Errors","\u002Flogging\u002Fstructured-errors","2.logging\u002F3.structured-errors","i-lucide-shield-alert",{"title":61,"path":62,"stem":63,"icon":64},"Catalogs","\u002Flogging\u002Fcatalogs","2.logging\u002F4.catalogs","i-lucide-book-open",{"title":66,"path":67,"stem":68,"icon":69},"Client Logging","\u002Flogging\u002Fclient-logging","2.logging\u002F5.client-logging","i-lucide-monitor",{"title":71,"icon":72,"path":73,"stem":74,"children":75,"page":34},"AI SDK","i-simple-icons-vercel","\u002Flogging\u002Fai-sdk","2.logging\u002F6.ai-sdk",[76,79,84,89,94],{"title":41,"path":77,"stem":78,"icon":44},"\u002Flogging\u002Fai-sdk\u002Foverview","2.logging\u002F6.ai-sdk\u002F01.overview",{"title":80,"path":81,"stem":82,"icon":83},"Usage","\u002Flogging\u002Fai-sdk\u002Fusage","2.logging\u002F6.ai-sdk\u002F02.usage","i-lucide-code",{"title":85,"path":86,"stem":87,"icon":88},"Options","\u002Flogging\u002Fai-sdk\u002Foptions","2.logging\u002F6.ai-sdk\u002F03.options","i-lucide-sliders",{"title":90,"path":91,"stem":92,"icon":93},"Metadata","\u002Flogging\u002Fai-sdk\u002Fmetadata","2.logging\u002F6.ai-sdk\u002F04.metadata","i-lucide-database",{"title":95,"path":96,"stem":97,"icon":98},"Telemetry","\u002Flogging\u002Fai-sdk\u002Ftelemetry","2.logging\u002F6.ai-sdk\u002F05.telemetry","i-lucide-activity",{"title":100,"icon":101,"path":102,"stem":103,"children":104,"page":34},"Better Auth","i-simple-icons-betterauth","\u002Flogging\u002Fbetter-auth","2.logging\u002F7.better-auth",[105,108,113,118,122],{"title":41,"path":106,"stem":107,"icon":44},"\u002Flogging\u002Fbetter-auth\u002Foverview","2.logging\u002F7.better-auth\u002F01.overview",{"title":109,"path":110,"stem":111,"icon":112},"Identify User","\u002Flogging\u002Fbetter-auth\u002Fidentify-user","2.logging\u002F7.better-auth\u002F02.identify-user","i-lucide-user-check",{"title":114,"path":115,"stem":116,"icon":117},"Middleware","\u002Flogging\u002Fbetter-auth\u002Fmiddleware","2.logging\u002F7.better-auth\u002F03.middleware","i-lucide-shield",{"title":119,"path":120,"stem":121,"icon":69},"Client Sync","\u002Flogging\u002Fbetter-auth\u002Fclient-sync","2.logging\u002F7.better-auth\u002F04.client-sync",{"title":123,"path":124,"stem":125,"icon":126},"Performance","\u002Flogging\u002Fbetter-auth\u002Fperformance","2.logging\u002F7.better-auth\u002F05.performance","i-lucide-gauge",{"title":128,"icon":129,"path":130,"stem":131,"children":132,"page":34},"Audit Logs","i-lucide-shield-check","\u002Flogging\u002Faudit","2.logging\u002F8.audit",[133,136,141,146,151,155],{"title":41,"path":134,"stem":135,"icon":44},"\u002Flogging\u002Faudit\u002Foverview","2.logging\u002F8.audit\u002F01.overview",{"title":137,"path":138,"stem":139,"icon":140},"Schema","\u002Flogging\u002Faudit\u002Fschema","2.logging\u002F8.audit\u002F02.schema","i-lucide-file-text",{"title":142,"path":143,"stem":144,"icon":145},"Recording","\u002Flogging\u002Faudit\u002Frecording","2.logging\u002F8.audit\u002F03.recording","i-lucide-pen-line",{"title":147,"path":148,"stem":149,"icon":150},"Drains","\u002Flogging\u002Faudit\u002Fpipeline","2.logging\u002F8.audit\u002F04.pipeline","i-lucide-link",{"title":152,"path":153,"stem":154,"icon":129},"Compliance","\u002Flogging\u002Faudit\u002Fcompliance","2.logging\u002F8.audit\u002F05.compliance",{"title":156,"path":157,"stem":158,"icon":64},"Recipes","\u002Flogging\u002Faudit\u002Frecipes","2.logging\u002F8.audit\u002F06.recipes",{"title":160,"path":161,"stem":162,"children":163,"page":34},"Core Concepts","\u002Fcore-concepts","3.core-concepts",[164,169,174,179,184,188,191,196],{"title":165,"path":166,"stem":167,"icon":168},"Lifecycle","\u002Fcore-concepts\u002Flifecycle","3.core-concepts\u002F0.lifecycle","i-lucide-arrow-right-left",{"title":170,"path":171,"stem":172,"icon":173},"Configuration","\u002Fcore-concepts\u002Fconfiguration","3.core-concepts\u002F1.configuration","i-lucide-settings",{"title":175,"path":176,"stem":177,"icon":178},"Sampling","\u002Fcore-concepts\u002Fsampling","3.core-concepts\u002F2.sampling","i-lucide-filter",{"title":180,"path":181,"stem":182,"icon":183},"Typed Fields","\u002Fcore-concepts\u002Ftyped-fields","3.core-concepts\u002F3.typed-fields","i-simple-icons-typescript",{"title":185,"path":186,"stem":187,"icon":129},"Best Practices","\u002Fcore-concepts\u002Fbest-practices","3.core-concepts\u002F4.best-practices",{"title":123,"path":189,"stem":190,"icon":126},"\u002Fcore-concepts\u002Fperformance","3.core-concepts\u002F5.performance",{"title":192,"path":193,"stem":194,"icon":195},"Vite Plugin","\u002Fcore-concepts\u002Fvite-plugin","3.core-concepts\u002F6.vite-plugin","i-custom-vite",{"title":197,"path":198,"stem":199,"icon":200},"Auto-Redaction","\u002Fcore-concepts\u002Fredaction","3.core-concepts\u002F7.redaction","i-lucide-eye-off",{"title":202,"path":203,"stem":204,"children":205,"page":34},"Frameworks","\u002Fframeworks","4.frameworks",[206,210,215,220,225,230,235,240,245,250,255,260,265,270,274,279,284],{"title":41,"path":207,"stem":208,"icon":209},"\u002Fframeworks\u002Foverview","4.frameworks\u002F00.overview","i-lucide-layout-grid",{"title":211,"path":212,"stem":213,"icon":214},"Nuxt","\u002Fframeworks\u002Fnuxt","4.frameworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":216,"path":217,"stem":218,"icon":219},"Next.js","\u002Fframeworks\u002Fnextjs","4.frameworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":221,"path":222,"stem":223,"icon":224},"SvelteKit","\u002Fframeworks\u002Fsveltekit","4.frameworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":226,"path":227,"stem":228,"icon":229},"Nitro","\u002Fframeworks\u002Fnitro","4.frameworks\u002F04.nitro","i-custom-nitro",{"title":231,"path":232,"stem":233,"icon":234},"TanStack Start","\u002Fframeworks\u002Ftanstack-start","4.frameworks\u002F05.tanstack-start","i-custom-tanstack",{"title":236,"path":237,"stem":238,"icon":239},"NestJS","\u002Fframeworks\u002Fnestjs","4.frameworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":241,"path":242,"stem":243,"icon":244},"Express","\u002Fframeworks\u002Fexpress","4.frameworks\u002F07.express","i-simple-icons-express",{"title":246,"path":247,"stem":248,"icon":249},"Hono","\u002Fframeworks\u002Fhono","4.frameworks\u002F08.hono","i-simple-icons-hono",{"title":251,"path":252,"stem":253,"icon":254},"Fastify","\u002Fframeworks\u002Ffastify","4.frameworks\u002F09.fastify","i-simple-icons-fastify",{"title":256,"path":257,"stem":258,"icon":259},"Elysia","\u002Fframeworks\u002Felysia","4.frameworks\u002F10.elysia","i-custom-elysia",{"title":261,"path":262,"stem":263,"icon":264},"React Router","\u002Fframeworks\u002Freact-router","4.frameworks\u002F11.react-router","i-custom-reactrouter",{"title":266,"path":267,"stem":268,"icon":269},"Cloudflare Workers","\u002Fframeworks\u002Fcloudflare-workers","4.frameworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":271,"path":272,"stem":273,"icon":183},"Standalone","\u002Fframeworks\u002Fstandalone","4.frameworks\u002F13.standalone",{"title":275,"path":276,"stem":277,"icon":278},"Astro","\u002Fframeworks\u002Fastro","4.frameworks\u002F14.astro","i-simple-icons-astro",{"title":280,"path":281,"stem":282,"icon":283},"AWS Lambda","\u002Fframeworks\u002Faws-lambda","4.frameworks\u002F16.aws-lambda","i-custom-lambda",{"title":285,"path":286,"stem":287,"icon":288},"Custom Integration","\u002Fframeworks\u002Fcustom-integration","4.frameworks\u002F17.custom-integration","i-lucide-puzzle",{"title":290,"path":291,"stem":292,"children":293,"page":34},"Build on top","\u002Fbuild-on-top","5.build-on-top",[294,297,302,307,312,316,321,326,330,334,338,342,347],{"title":41,"path":295,"stem":296,"icon":54},"\u002Fbuild-on-top\u002Foverview","5.build-on-top\u002F0.overview",{"title":298,"path":299,"stem":300,"icon":301},"In-process stream","\u002Fbuild-on-top\u002Fin-process-stream","5.build-on-top\u002F1.in-process-stream","i-lucide-radio-tower",{"title":303,"path":304,"stem":305,"icon":306},"Fanout","\u002Fbuild-on-top\u002Ffanout-and-multi-drain","5.build-on-top\u002F10.fanout-and-multi-drain","i-lucide-share-2",{"title":308,"path":309,"stem":310,"icon":311},"Identity headers","\u002Fbuild-on-top\u002Fidentity-headers","5.build-on-top\u002F11.identity-headers","i-lucide-fingerprint",{"title":313,"path":314,"stem":315,"icon":288},"Custom framework","\u002Fbuild-on-top\u002Fcustom-framework","5.build-on-top\u002F12.custom-framework",{"title":317,"path":318,"stem":319,"icon":320},"Stream server","\u002Fbuild-on-top\u002Fstream-server","5.build-on-top\u002F2.stream-server","i-lucide-radio",{"title":322,"path":323,"stem":324,"icon":325},"FS reader","\u002Fbuild-on-top\u002Ffs-reader","5.build-on-top\u002F3.fs-reader","i-lucide-folder-search",{"title":156,"path":327,"stem":328,"icon":329},"\u002Fbuild-on-top\u002Fconsumer-recipes","5.build-on-top\u002F4.consumer-recipes","i-lucide-chef-hat",{"title":331,"path":332,"stem":333,"icon":288},"Plugins","\u002Fbuild-on-top\u002Fplugins","5.build-on-top\u002F5.plugins",{"title":335,"path":336,"stem":337,"icon":28},"Custom enrichers","\u002Fbuild-on-top\u002Fcustom-enrichers","5.build-on-top\u002F6.custom-enrichers",{"title":339,"path":340,"stem":341,"icon":178},"Tail sampling","\u002Fbuild-on-top\u002Ftail-sampling","5.build-on-top\u002F7.tail-sampling",{"title":343,"path":344,"stem":345,"icon":346},"Custom drains","\u002Fbuild-on-top\u002Fcustom-drains","5.build-on-top\u002F8.custom-drains","i-lucide-code-2",{"title":348,"path":349,"stem":350,"icon":351},"Drain pipeline","\u002Fbuild-on-top\u002Fdrain-pipeline","5.build-on-top\u002F9.drain-pipeline","i-lucide-workflow",{"title":353,"path":354,"stem":355,"children":356,"page":34},"Adapters","\u002Fadapters","6.adapters",[357,360,400,415],{"title":41,"path":358,"stem":359,"icon":44},"\u002Fadapters\u002Foverview","6.adapters\u002F01.overview",{"title":361,"path":362,"stem":363,"children":364,"page":34},"Cloud destinations","\u002Fadapters\u002Fcloud","6.adapters\u002F02.cloud",[365,370,375,380,385,390,395],{"title":366,"path":367,"stem":368,"icon":369},"Axiom","\u002Fadapters\u002Fcloud\u002Faxiom","6.adapters\u002F02.cloud\u002F01.axiom","i-custom-axiom",{"title":371,"path":372,"stem":373,"icon":374},"OTLP","\u002Fadapters\u002Fcloud\u002Fotlp","6.adapters\u002F02.cloud\u002F02.otlp","i-simple-icons-opentelemetry",{"title":376,"path":377,"stem":378,"icon":379},"PostHog","\u002Fadapters\u002Fcloud\u002Fposthog","6.adapters\u002F02.cloud\u002F03.posthog","i-simple-icons-posthog",{"title":381,"path":382,"stem":383,"icon":384},"Sentry","\u002Fadapters\u002Fcloud\u002Fsentry","6.adapters\u002F02.cloud\u002F04.sentry","i-simple-icons-sentry",{"title":386,"path":387,"stem":388,"icon":389},"Better Stack","\u002Fadapters\u002Fcloud\u002Fbetter-stack","6.adapters\u002F02.cloud\u002F05.better-stack","i-simple-icons-betterstack",{"title":391,"path":392,"stem":393,"icon":394},"Datadog","\u002Fadapters\u002Fcloud\u002Fdatadog","6.adapters\u002F02.cloud\u002F06.datadog","i-simple-icons-datadog",{"title":396,"path":397,"stem":398,"icon":399},"HyperDX","\u002Fadapters\u002Fcloud\u002Fhyperdx","6.adapters\u002F02.cloud\u002F07.hyperdx","i-custom-hyperdx",{"title":401,"path":402,"stem":403,"children":404,"page":34},"Self-hosted","\u002Fadapters\u002Fself-hosted","6.adapters\u002F03.self-hosted",[405,410],{"title":406,"path":407,"stem":408,"icon":409},"File System","\u002Fadapters\u002Fself-hosted\u002Ffs","6.adapters\u002F03.self-hosted\u002F01.fs","i-lucide-hard-drive",{"title":411,"path":412,"stem":413,"icon":414},"NuxtHub","\u002Fadapters\u002Fself-hosted\u002Fnuxthub","6.adapters\u002F03.self-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":416,"path":417,"stem":418,"children":419,"page":34},"Building blocks","\u002Fadapters\u002Fbuilding-blocks","6.adapters\u002F04.building-blocks",[420,424,429,433],{"title":421,"path":422,"stem":423,"icon":351},"Pipeline","\u002Fadapters\u002Fbuilding-blocks\u002Fpipeline","6.adapters\u002F04.building-blocks\u002F01.pipeline",{"title":425,"path":426,"stem":427,"icon":428},"HTTP","\u002Fadapters\u002Fbuilding-blocks\u002Fhttp","6.adapters\u002F04.building-blocks\u002F02.http","i-lucide-globe",{"title":430,"path":431,"stem":432,"icon":83},"Custom Adapters","\u002Fadapters\u002Fbuilding-blocks\u002Fcustom","6.adapters\u002F04.building-blocks\u002F03.custom",{"title":434,"path":435,"stem":436,"icon":437},"Toolkit","\u002Fadapters\u002Fbuilding-blocks\u002Ftoolkit","6.adapters\u002F04.building-blocks\u002F04.toolkit","i-lucide-blocks",{"title":439,"path":440,"stem":441,"children":442,"page":34},"Enrichers","\u002Fenrichers","7.enrichers",[443,446,450],{"title":41,"path":444,"stem":445,"icon":28},"\u002Fenrichers\u002Foverview","7.enrichers\u002F1.overview",{"title":447,"path":448,"stem":449,"icon":288},"Built-in","\u002Fenrichers\u002Fbuilt-in","7.enrichers\u002F2.built-in",{"title":451,"path":452,"stem":453,"icon":83},"Custom","\u002Fenrichers\u002Fcustom","7.enrichers\u002F3.custom",{"id":455,"title":456,"body":457,"description":1078,"extension":1079,"links":1080,"meta":1081,"navigation":1082,"path":323,"seo":1083,"stem":324,"__hash__":1084},"docs\u002F5.build-on-top\u002F3.fs-reader.md","Reading FS logs",{"type":458,"value":459,"toc":1069},"minimark",[460,483,488,656,662,666,771,774,778,948,958,962,1021,1031,1035,1065],[461,462,463,464,468,469,473,474,477,478,482],"p",{},"The ",[465,466,467],"a",{"href":407},"filesystem drain"," writes wide events as NDJSON files in ",[470,471,472],"code",{},".evlog\u002Flogs\u002F"," (one file per day, optional rotation). The ",[470,475,476],{},"evlog\u002Ffs"," module also ships ",[479,480,481],"strong",{},"readers"," that let any Node tool replay or follow that history without hooking into the running app.",[484,485,487],"h2",{"id":486},"replay-history","Replay history",[489,490,495],"pre",{"className":491,"code":492,"language":493,"meta":494,"style":494},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { readFsLogs } from 'evlog\u002Ffs'\n\nfor await (const event of readFsLogs({ since: '2026-03-01', level: 'error' })) {\n  console.log(event.timestamp, event.action ?? event.message)\n}\n","ts","",[470,496,497,529,536,605,650],{"__ignoreMap":494},[498,499,502,506,510,514,517,520,523,526],"span",{"class":500,"line":501},"line",1,[498,503,505],{"class":504},"s7zQu","import",[498,507,509],{"class":508},"sMK4o"," {",[498,511,513],{"class":512},"sTEyZ"," readFsLogs",[498,515,516],{"class":508}," }",[498,518,519],{"class":504}," from",[498,521,522],{"class":508}," '",[498,524,476],{"class":525},"sfazB",[498,527,528],{"class":508},"'\n",[498,530,532],{"class":500,"line":531},2,[498,533,535],{"emptyLinePlaceholder":534},true,"\n",[498,537,539,542,545,548,552,555,558,561,564,567,571,574,576,579,582,585,588,590,592,595,597,599,602],{"class":500,"line":538},3,[498,540,541],{"class":504},"for",[498,543,544],{"class":504}," await",[498,546,547],{"class":512}," (",[498,549,551],{"class":550},"spNyl","const",[498,553,554],{"class":512}," event ",[498,556,557],{"class":508},"of",[498,559,513],{"class":560},"s2Zo4",[498,562,563],{"class":512},"(",[498,565,566],{"class":508},"{",[498,568,570],{"class":569},"swJcz"," since",[498,572,573],{"class":508},":",[498,575,522],{"class":508},[498,577,578],{"class":525},"2026-03-01",[498,580,581],{"class":508},"'",[498,583,584],{"class":508},",",[498,586,587],{"class":569}," level",[498,589,573],{"class":508},[498,591,522],{"class":508},[498,593,594],{"class":525},"error",[498,596,581],{"class":508},[498,598,516],{"class":508},[498,600,601],{"class":512},")) ",[498,603,604],{"class":508},"{\n",[498,606,608,611,614,617,619,622,624,627,629,632,634,637,640,642,644,647],{"class":500,"line":607},4,[498,609,610],{"class":512},"  console",[498,612,613],{"class":508},".",[498,615,616],{"class":560},"log",[498,618,563],{"class":569},[498,620,621],{"class":512},"event",[498,623,613],{"class":508},[498,625,626],{"class":512},"timestamp",[498,628,584],{"class":508},[498,630,631],{"class":512}," event",[498,633,613],{"class":508},[498,635,636],{"class":512},"action",[498,638,639],{"class":508}," ??",[498,641,631],{"class":512},[498,643,613],{"class":508},[498,645,646],{"class":512},"message",[498,648,649],{"class":569},")\n",[498,651,653],{"class":500,"line":652},5,[498,654,655],{"class":508},"}\n",[461,657,658,661],{},[470,659,660],{},"readFsLogs(options)"," walks the NDJSON files in chronological order, parses them line by line, and yields events that pass all filters. Files outside the date window are skipped entirely.",[663,664,85],"h3",{"id":665},"options",[667,668,669,685],"table",{},[670,671,672],"thead",{},[673,674,675,679,682],"tr",{},[676,677,678],"th",{},"Option",[676,680,681],{},"Type",[676,683,684],{},"Description",[686,687,688,707,725,741,756],"tbody",{},[673,689,690,696,701],{},[691,692,693],"td",{},[470,694,695],{},"dir",[691,697,698],{},[470,699,700],{},"string",[691,702,703,704,613],{},"Directory to read from. Default: ",[470,705,706],{},".evlog\u002Flogs",[673,708,709,714,719],{},[691,710,711],{},[470,712,713],{},"since",[691,715,716],{},[470,717,718],{},"Date | string",[691,720,721,722,613],{},"Yield events with ",[470,723,724],{},"timestamp >= since",[673,726,727,732,736],{},[691,728,729],{},[470,730,731],{},"until",[691,733,734],{},[470,735,718],{},[691,737,721,738,613],{},[470,739,740],{},"timestamp \u003C= until",[673,742,743,748,753],{},[691,744,745],{},[470,746,747],{},"level",[691,749,750],{},[470,751,752],{},"LogLevel | LogLevel[]",[691,754,755],{},"Filter by event level.",[673,757,758,763,768],{},[691,759,760],{},[470,761,762],{},"filter",[691,764,765],{},[470,766,767],{},"(event) => boolean",[691,769,770],{},"Custom predicate.",[461,772,773],{},"Malformed lines (partial writes, manual edits) are silently skipped — your script never crashes on a bad line.",[484,775,777],{"id":776},"live-tail","Live tail",[489,779,781],{"className":491,"code":780,"language":493,"meta":494,"style":494},"import { tailFsLogs } from 'evlog\u002Ffs'\n\nconst ac = new AbortController()\nprocess.on('SIGINT', () => ac.abort())\n\nfor await (const event of tailFsLogs({ signal: ac.signal })) {\n  console.log('live:', event.action ?? event.message)\n}\n",[470,782,783,802,806,825,863,867,907,943],{"__ignoreMap":494},[498,784,785,787,789,792,794,796,798,800],{"class":500,"line":501},[498,786,505],{"class":504},[498,788,509],{"class":508},[498,790,791],{"class":512}," tailFsLogs",[498,793,516],{"class":508},[498,795,519],{"class":504},[498,797,522],{"class":508},[498,799,476],{"class":525},[498,801,528],{"class":508},[498,803,804],{"class":500,"line":531},[498,805,535],{"emptyLinePlaceholder":534},[498,807,808,810,813,816,819,822],{"class":500,"line":538},[498,809,551],{"class":550},[498,811,812],{"class":512}," ac ",[498,814,815],{"class":508},"=",[498,817,818],{"class":508}," new",[498,820,821],{"class":560}," AbortController",[498,823,824],{"class":512},"()\n",[498,826,827,830,832,835,837,839,842,844,846,849,852,855,857,860],{"class":500,"line":607},[498,828,829],{"class":512},"process",[498,831,613],{"class":508},[498,833,834],{"class":560},"on",[498,836,563],{"class":512},[498,838,581],{"class":508},[498,840,841],{"class":525},"SIGINT",[498,843,581],{"class":508},[498,845,584],{"class":508},[498,847,848],{"class":508}," ()",[498,850,851],{"class":550}," =>",[498,853,854],{"class":512}," ac",[498,856,613],{"class":508},[498,858,859],{"class":560},"abort",[498,861,862],{"class":512},"())\n",[498,864,865],{"class":500,"line":652},[498,866,535],{"emptyLinePlaceholder":534},[498,868,870,872,874,876,878,880,882,884,886,888,891,893,895,897,900,903,905],{"class":500,"line":869},6,[498,871,541],{"class":504},[498,873,544],{"class":504},[498,875,547],{"class":512},[498,877,551],{"class":550},[498,879,554],{"class":512},[498,881,557],{"class":508},[498,883,791],{"class":560},[498,885,563],{"class":512},[498,887,566],{"class":508},[498,889,890],{"class":569}," signal",[498,892,573],{"class":508},[498,894,854],{"class":512},[498,896,613],{"class":508},[498,898,899],{"class":512},"signal ",[498,901,902],{"class":508},"}",[498,904,601],{"class":512},[498,906,604],{"class":508},[498,908,910,912,914,916,918,920,923,925,927,929,931,933,935,937,939,941],{"class":500,"line":909},7,[498,911,610],{"class":512},[498,913,613],{"class":508},[498,915,616],{"class":560},[498,917,563],{"class":569},[498,919,581],{"class":508},[498,921,922],{"class":525},"live:",[498,924,581],{"class":508},[498,926,584],{"class":508},[498,928,631],{"class":512},[498,930,613],{"class":508},[498,932,636],{"class":512},[498,934,639],{"class":508},[498,936,631],{"class":512},[498,938,613],{"class":508},[498,940,646],{"class":512},[498,942,649],{"class":569},[498,944,946],{"class":500,"line":945},8,[498,947,655],{"class":508},[461,949,950,953,954,957],{},[470,951,952],{},"tailFsLogs(options)"," first yields existing events (unless ",[470,955,956],{},"fromEnd: true","), then keeps yielding new ones as they're appended — including events written into newly created daily files. Partial writes split across polls are recombined transparently.",[663,959,961],{"id":960},"tail-specific-options","Tail-specific options",[667,963,964,974],{},[670,965,966],{},[673,967,968,970,972],{},[676,969,678],{},[676,971,681],{},[676,973,684],{},[686,975,976,991,1006],{},[673,977,978,983,988],{},[691,979,980],{},[470,981,982],{},"pollIntervalMs",[691,984,985],{},[470,986,987],{},"number",[691,989,990],{},"Polling interval. Default: 500ms (minimum 50ms).",[673,992,993,998,1003],{},[691,994,995],{},[470,996,997],{},"fromEnd",[691,999,1000],{},[470,1001,1002],{},"boolean",[691,1004,1005],{},"Skip existing events; only yield future ones. Default: false.",[673,1007,1008,1013,1018],{},[691,1009,1010],{},[470,1011,1012],{},"signal",[691,1014,1015],{},[470,1016,1017],{},"AbortSignal",[691,1019,1020],{},"Stop tailing when aborted.",[461,1022,1023,1024,1030],{},"All ",[465,1025,1027],{"href":1026},"#options",[470,1028,1029],{},"readFsLogs"," options also apply.",[484,1032,1034],{"id":1033},"use-cases","Use cases",[1036,1037,1038,1045,1048,1058],"ul",{},[1039,1040,1041,1042,1044],"li",{},"A local Electron \u002F Tauri dashboard reading ",[470,1043,472],{}," from a target project directory.",[1039,1046,1047],{},"A CI report aggregator that scans logs after a test run.",[1039,1049,1050,1051,1054,1055,613],{},"A ",[470,1052,1053],{},"grep","-style CLI that pipes filtered events into ",[470,1056,1057],{},"jq",[1039,1059,1060,1061,613],{},"Replaying historic events into a dashboard before switching to a live in-process subscription. See the ",[465,1062,1064],{"href":1063},"\u002Fbuild-on-top\u002Fconsumer-recipes#3-replay-history-then-go-live","replay-then-live recipe",[1066,1067,1068],"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 pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}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);}",{"title":494,"searchDepth":531,"depth":531,"links":1070},[1071,1074,1077],{"id":486,"depth":531,"text":487,"children":1072},[1073],{"id":665,"depth":538,"text":85},{"id":776,"depth":531,"text":777,"children":1075},[1076],{"id":960,"depth":538,"text":961},{"id":1033,"depth":531,"text":1034},"Replay and tail the local NDJSON drain with readFsLogs and tailFsLogs — works in-process or from any external Node tool.","md",null,{},{"title":322,"icon":325},{"title":456,"description":1078},"ZeV10CngCe01PWtBCXQQmAZQqBkI1n8ULEyc2jZvUxg",[1086,1088],{"title":317,"path":318,"stem":319,"description":1087,"icon":320,"children":-1},"A local HTTP mini-server on its own port that exposes the in-process stream over Server-Sent Events. Strict opt-in, framework-agnostic, no app route to wire.",{"title":156,"path":327,"stem":328,"description":1089,"icon":329,"children":-1},"Concrete copy-paste recipes — build your own minimal devtool, pipe to curl + jq, replay history then go live, and aggregate on the consumer side.",1778340169028]