[{"data":1,"prerenderedAt":1143},["ShallowReactive",2],{"navigation_docs":3,"-build-on-top-fs-reader":427,"-build-on-top-fs-reader-surround":1138},[4,35,159,201,289,324,411],{"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,311,315,320],{"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","\u002Fbuild-on-top\u002Fstream","5.build-on-top\u002F1.stream","i-lucide-radio-tower",{"title":303,"path":304,"stem":305,"icon":306},"FS reader","\u002Fbuild-on-top\u002Ffs-reader","5.build-on-top\u002F2.fs-reader","i-lucide-folder-search",{"title":156,"path":308,"stem":309,"icon":310},"\u002Fbuild-on-top\u002Fconsumer-recipes","5.build-on-top\u002F3.consumer-recipes","i-lucide-chef-hat",{"title":312,"path":313,"stem":314,"icon":288},"Pipeline extension","\u002Fbuild-on-top\u002Fpipeline-extension","5.build-on-top\u002F4.pipeline-extension",{"title":316,"path":317,"stem":318,"icon":319},"Sinks","\u002Fbuild-on-top\u002Fsinks","5.build-on-top\u002F5.sinks","i-lucide-share-2",{"title":321,"path":322,"stem":323,"icon":288},"Framework integration","\u002Fbuild-on-top\u002Fframework-integration","5.build-on-top\u002F6.framework-integration",{"title":325,"path":326,"stem":327,"children":328,"page":34},"Adapters","\u002Fadapters","6.adapters",[329,332,372,387],{"title":41,"path":330,"stem":331,"icon":44},"\u002Fadapters\u002Foverview","6.adapters\u002F01.overview",{"title":333,"path":334,"stem":335,"children":336,"page":34},"Cloud destinations","\u002Fadapters\u002Fcloud","6.adapters\u002F02.cloud",[337,342,347,352,357,362,367],{"title":338,"path":339,"stem":340,"icon":341},"Axiom","\u002Fadapters\u002Fcloud\u002Faxiom","6.adapters\u002F02.cloud\u002F01.axiom","i-custom-axiom",{"title":343,"path":344,"stem":345,"icon":346},"OTLP","\u002Fadapters\u002Fcloud\u002Fotlp","6.adapters\u002F02.cloud\u002F02.otlp","i-simple-icons-opentelemetry",{"title":348,"path":349,"stem":350,"icon":351},"PostHog","\u002Fadapters\u002Fcloud\u002Fposthog","6.adapters\u002F02.cloud\u002F03.posthog","i-simple-icons-posthog",{"title":353,"path":354,"stem":355,"icon":356},"Sentry","\u002Fadapters\u002Fcloud\u002Fsentry","6.adapters\u002F02.cloud\u002F04.sentry","i-simple-icons-sentry",{"title":358,"path":359,"stem":360,"icon":361},"Better Stack","\u002Fadapters\u002Fcloud\u002Fbetter-stack","6.adapters\u002F02.cloud\u002F05.better-stack","i-simple-icons-betterstack",{"title":363,"path":364,"stem":365,"icon":366},"Datadog","\u002Fadapters\u002Fcloud\u002Fdatadog","6.adapters\u002F02.cloud\u002F06.datadog","i-simple-icons-datadog",{"title":368,"path":369,"stem":370,"icon":371},"HyperDX","\u002Fadapters\u002Fcloud\u002Fhyperdx","6.adapters\u002F02.cloud\u002F07.hyperdx","i-custom-hyperdx",{"title":373,"path":374,"stem":375,"children":376,"page":34},"Self-hosted","\u002Fadapters\u002Fself-hosted","6.adapters\u002F03.self-hosted",[377,382],{"title":378,"path":379,"stem":380,"icon":381},"File System","\u002Fadapters\u002Fself-hosted\u002Ffs","6.adapters\u002F03.self-hosted\u002F01.fs","i-lucide-hard-drive",{"title":383,"path":384,"stem":385,"icon":386},"NuxtHub","\u002Fadapters\u002Fself-hosted\u002Fnuxthub","6.adapters\u002F03.self-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":388,"path":389,"stem":390,"children":391,"page":34},"Building blocks","\u002Fadapters\u002Fbuilding-blocks","6.adapters\u002F04.building-blocks",[392,397,402,406],{"title":393,"path":394,"stem":395,"icon":396},"Pipeline","\u002Fadapters\u002Fbuilding-blocks\u002Fpipeline","6.adapters\u002F04.building-blocks\u002F01.pipeline","i-lucide-workflow",{"title":398,"path":399,"stem":400,"icon":401},"HTTP","\u002Fadapters\u002Fbuilding-blocks\u002Fhttp","6.adapters\u002F04.building-blocks\u002F02.http","i-lucide-globe",{"title":403,"path":404,"stem":405,"icon":83},"Custom Adapters","\u002Fadapters\u002Fbuilding-blocks\u002Fcustom","6.adapters\u002F04.building-blocks\u002F03.custom",{"title":407,"path":408,"stem":409,"icon":410},"Toolkit","\u002Fadapters\u002Fbuilding-blocks\u002Ftoolkit","6.adapters\u002F04.building-blocks\u002F04.toolkit","i-lucide-blocks",{"title":412,"path":413,"stem":414,"children":415,"page":34},"Enrichers","\u002Fenrichers","7.enrichers",[416,419,423],{"title":41,"path":417,"stem":418,"icon":28},"\u002Fenrichers\u002Foverview","7.enrichers\u002F1.overview",{"title":420,"path":421,"stem":422,"icon":288},"Built-in","\u002Fenrichers\u002Fbuilt-in","7.enrichers\u002F2.built-in",{"title":424,"path":425,"stem":426,"icon":83},"Custom","\u002Fenrichers\u002Fcustom","7.enrichers\u002F3.custom",{"id":428,"title":303,"body":429,"description":1131,"extension":1132,"links":1133,"meta":1134,"navigation":1135,"path":304,"seo":1136,"stem":305,"__hash__":1137},"docs\u002F5.build-on-top\u002F2.fs-reader.md",{"type":430,"value":431,"toc":1122},"minimark",[432,467,470,544,549,717,723,727,828,831,835,1005,1015,1019,1077,1086,1090,1118],[433,434,435,436,440,441,445,446,449,450,453,454,457,458,461,462,466],"p",{},"The ",[437,438,439],"a",{"href":379},"filesystem drain"," writes wide events as NDJSON to ",[442,443,444],"code",{},".jsonl"," files under ",[442,447,448],{},".evlog\u002Flogs\u002F"," (one file per day, e.g. ",[442,451,452],{},"2026-05-08.jsonl",", plus rotation suffixes like ",[442,455,456],{},".1.jsonl"," when size-based rotation is enabled). The ",[442,459,460],{},"evlog\u002Ffs"," module also ships ",[463,464,465],"strong",{},"readers"," that let any Node tool replay or follow that history without hooking into the running app.",[468,469],"ndjson-tail",{},[471,472,475,478,536],"prompt",{":actions":473,"description":474,"icon":306},"[\"copy\",\"cursor\",\"windsurf\"]","Read or tail evlog NDJSON logs from disk",[433,476,477],{},"Build a script that consumes evlog's local NDJSON history (no app hook required).",[479,480,481,492,505,515,533],"ul",{},[482,483,484,485,487,488,491],"li",{},"Confirm the filesystem drain is wired up (",[442,486,460],{}," adapter writing NDJSON to ",[442,489,490],{},".evlog\u002Flogs\u002F*.jsonl",")",[482,493,494,495,498,499,501,502],{},"For replay: import ",[442,496,497],{},"readFsLogs"," from ",[442,500,460],{}," and iterate ",[442,503,504],{},"for await (const event of readFsLogs({ since, until, level, filter }))",[482,506,507,508,511,512],{},"For follow mode: import ",[442,509,510],{},"tailFsLogs"," and iterate the same way — it watches for new lines, handles rotation, and accepts an ",[442,513,514],{},"AbortSignal",[482,516,517,518,521,522,521,525,528,529,532],{},"Apply filters at read time (",[442,519,520],{},"level",", ",[442,523,524],{},"since",[442,526,527],{},"until",", custom ",[442,530,531],{},"filter"," predicate) instead of post-processing",[482,534,535],{},"Treat malformed lines as silently skipped (partial writes happen) — never crash the script on a bad line",[433,537,538,539],{},"Docs: ",[437,540,541],{"href":541,"rel":542},"https:\u002F\u002Fwww.evlog.dev\u002Fbuild-on-top\u002Ffs-reader",[543],"nofollow",[545,546,548],"h2",{"id":547},"replay-history","Replay history",[550,551,556],"pre",{"className":552,"code":553,"language":554,"meta":555,"style":555},"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","",[442,557,558,590,597,666,711],{"__ignoreMap":555},[559,560,563,567,571,575,578,581,584,587],"span",{"class":561,"line":562},"line",1,[559,564,566],{"class":565},"s7zQu","import",[559,568,570],{"class":569},"sMK4o"," {",[559,572,574],{"class":573},"sTEyZ"," readFsLogs",[559,576,577],{"class":569}," }",[559,579,580],{"class":565}," from",[559,582,583],{"class":569}," '",[559,585,460],{"class":586},"sfazB",[559,588,589],{"class":569},"'\n",[559,591,593],{"class":561,"line":592},2,[559,594,596],{"emptyLinePlaceholder":595},true,"\n",[559,598,600,603,606,609,613,616,619,622,625,628,632,635,637,640,643,646,649,651,653,656,658,660,663],{"class":561,"line":599},3,[559,601,602],{"class":565},"for",[559,604,605],{"class":565}," await",[559,607,608],{"class":573}," (",[559,610,612],{"class":611},"spNyl","const",[559,614,615],{"class":573}," event ",[559,617,618],{"class":569},"of",[559,620,574],{"class":621},"s2Zo4",[559,623,624],{"class":573},"(",[559,626,627],{"class":569},"{",[559,629,631],{"class":630},"swJcz"," since",[559,633,634],{"class":569},":",[559,636,583],{"class":569},[559,638,639],{"class":586},"2026-03-01",[559,641,642],{"class":569},"'",[559,644,645],{"class":569},",",[559,647,648],{"class":630}," level",[559,650,634],{"class":569},[559,652,583],{"class":569},[559,654,655],{"class":586},"error",[559,657,642],{"class":569},[559,659,577],{"class":569},[559,661,662],{"class":573},")) ",[559,664,665],{"class":569},"{\n",[559,667,669,672,675,678,680,683,685,688,690,693,695,698,701,703,705,708],{"class":561,"line":668},4,[559,670,671],{"class":573},"  console",[559,673,674],{"class":569},".",[559,676,677],{"class":621},"log",[559,679,624],{"class":630},[559,681,682],{"class":573},"event",[559,684,674],{"class":569},[559,686,687],{"class":573},"timestamp",[559,689,645],{"class":569},[559,691,692],{"class":573}," event",[559,694,674],{"class":569},[559,696,697],{"class":573},"action",[559,699,700],{"class":569}," ??",[559,702,692],{"class":573},[559,704,674],{"class":569},[559,706,707],{"class":573},"message",[559,709,710],{"class":630},")\n",[559,712,714],{"class":561,"line":713},5,[559,715,716],{"class":569},"}\n",[433,718,719,722],{},[442,720,721],{},"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.",[724,725,85],"h3",{"id":726},"options",[728,729,730,746],"table",{},[731,732,733],"thead",{},[734,735,736,740,743],"tr",{},[737,738,739],"th",{},"Option",[737,741,742],{},"Type",[737,744,745],{},"Description",[747,748,749,768,785,800,814],"tbody",{},[734,750,751,757,762],{},[752,753,754],"td",{},[442,755,756],{},"dir",[752,758,759],{},[442,760,761],{},"string",[752,763,764,765,674],{},"Directory to read from. Default: ",[442,766,767],{},".evlog\u002Flogs",[734,769,770,774,779],{},[752,771,772],{},[442,773,524],{},[752,775,776],{},[442,777,778],{},"Date | string",[752,780,781,782,674],{},"Yield events with ",[442,783,784],{},"timestamp >= since",[734,786,787,791,795],{},[752,788,789],{},[442,790,527],{},[752,792,793],{},[442,794,778],{},[752,796,781,797,674],{},[442,798,799],{},"timestamp \u003C= until",[734,801,802,806,811],{},[752,803,804],{},[442,805,520],{},[752,807,808],{},[442,809,810],{},"LogLevel | LogLevel[]",[752,812,813],{},"Filter by event level.",[734,815,816,820,825],{},[752,817,818],{},[442,819,531],{},[752,821,822],{},[442,823,824],{},"(event) => boolean",[752,826,827],{},"Custom predicate.",[433,829,830],{},"Malformed lines (partial writes, manual edits) are silently skipped — your script never crashes on a bad line.",[545,832,834],{"id":833},"live-tail","Live tail",[550,836,838],{"className":552,"code":837,"language":554,"meta":555,"style":555},"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",[442,839,840,859,863,882,920,924,964,1000],{"__ignoreMap":555},[559,841,842,844,846,849,851,853,855,857],{"class":561,"line":562},[559,843,566],{"class":565},[559,845,570],{"class":569},[559,847,848],{"class":573}," tailFsLogs",[559,850,577],{"class":569},[559,852,580],{"class":565},[559,854,583],{"class":569},[559,856,460],{"class":586},[559,858,589],{"class":569},[559,860,861],{"class":561,"line":592},[559,862,596],{"emptyLinePlaceholder":595},[559,864,865,867,870,873,876,879],{"class":561,"line":599},[559,866,612],{"class":611},[559,868,869],{"class":573}," ac ",[559,871,872],{"class":569},"=",[559,874,875],{"class":569}," new",[559,877,878],{"class":621}," AbortController",[559,880,881],{"class":573},"()\n",[559,883,884,887,889,892,894,896,899,901,903,906,909,912,914,917],{"class":561,"line":668},[559,885,886],{"class":573},"process",[559,888,674],{"class":569},[559,890,891],{"class":621},"on",[559,893,624],{"class":573},[559,895,642],{"class":569},[559,897,898],{"class":586},"SIGINT",[559,900,642],{"class":569},[559,902,645],{"class":569},[559,904,905],{"class":569}," ()",[559,907,908],{"class":611}," =>",[559,910,911],{"class":573}," ac",[559,913,674],{"class":569},[559,915,916],{"class":621},"abort",[559,918,919],{"class":573},"())\n",[559,921,922],{"class":561,"line":713},[559,923,596],{"emptyLinePlaceholder":595},[559,925,927,929,931,933,935,937,939,941,943,945,948,950,952,954,957,960,962],{"class":561,"line":926},6,[559,928,602],{"class":565},[559,930,605],{"class":565},[559,932,608],{"class":573},[559,934,612],{"class":611},[559,936,615],{"class":573},[559,938,618],{"class":569},[559,940,848],{"class":621},[559,942,624],{"class":573},[559,944,627],{"class":569},[559,946,947],{"class":630}," signal",[559,949,634],{"class":569},[559,951,911],{"class":573},[559,953,674],{"class":569},[559,955,956],{"class":573},"signal ",[559,958,959],{"class":569},"}",[559,961,662],{"class":573},[559,963,665],{"class":569},[559,965,967,969,971,973,975,977,980,982,984,986,988,990,992,994,996,998],{"class":561,"line":966},7,[559,968,671],{"class":573},[559,970,674],{"class":569},[559,972,677],{"class":621},[559,974,624],{"class":630},[559,976,642],{"class":569},[559,978,979],{"class":586},"live:",[559,981,642],{"class":569},[559,983,645],{"class":569},[559,985,692],{"class":573},[559,987,674],{"class":569},[559,989,697],{"class":573},[559,991,700],{"class":569},[559,993,692],{"class":573},[559,995,674],{"class":569},[559,997,707],{"class":573},[559,999,710],{"class":630},[559,1001,1003],{"class":561,"line":1002},8,[559,1004,716],{"class":569},[433,1006,1007,1010,1011,1014],{},[442,1008,1009],{},"tailFsLogs(options)"," first yields existing events (unless ",[442,1012,1013],{},"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.",[724,1016,1018],{"id":1017},"tail-specific-options","Tail-specific options",[728,1020,1021,1031],{},[731,1022,1023],{},[734,1024,1025,1027,1029],{},[737,1026,739],{},[737,1028,742],{},[737,1030,745],{},[747,1032,1033,1048,1063],{},[734,1034,1035,1040,1045],{},[752,1036,1037],{},[442,1038,1039],{},"pollIntervalMs",[752,1041,1042],{},[442,1043,1044],{},"number",[752,1046,1047],{},"Polling interval. Default: 500ms (minimum 50ms).",[734,1049,1050,1055,1060],{},[752,1051,1052],{},[442,1053,1054],{},"fromEnd",[752,1056,1057],{},[442,1058,1059],{},"boolean",[752,1061,1062],{},"Skip existing events; only yield future ones. Default: false.",[734,1064,1065,1070,1074],{},[752,1066,1067],{},[442,1068,1069],{},"signal",[752,1071,1072],{},[442,1073,514],{},[752,1075,1076],{},"Stop tailing when aborted.",[433,1078,1079,1080,1085],{},"All ",[437,1081,1083],{"href":1082},"#options",[442,1084,497],{}," options also apply.",[545,1087,1089],{"id":1088},"use-cases","Use cases",[479,1091,1092,1098,1101,1111],{},[482,1093,1094,1095,1097],{},"A local Electron \u002F Tauri dashboard reading ",[442,1096,448],{}," from a target project directory",[482,1099,1100],{},"A CI report aggregator that scans logs after a test run",[482,1102,1103,1104,1107,1108],{},"A ",[442,1105,1106],{},"grep","-style CLI that pipes filtered events into ",[442,1109,1110],{},"jq",[482,1112,1113,1114],{},"Replaying historic events into a dashboard before switching to a live in-process subscription. See the ",[437,1115,1117],{"href":1116},"\u002Fbuild-on-top\u002Fconsumer-recipes#3-replay-history-then-go-live","replay-then-live recipe",[1119,1120,1121],"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":555,"searchDepth":592,"depth":592,"links":1123},[1124,1127,1130],{"id":547,"depth":592,"text":548,"children":1125},[1126],{"id":726,"depth":599,"text":85},{"id":833,"depth":592,"text":834,"children":1128},[1129],{"id":1017,"depth":599,"text":1018},{"id":1088,"depth":592,"text":1089},"Replay and tail the local NDJSON drain with readFsLogs and tailFsLogs — works in-process or from any external Node tool, survives restarts.","md",null,{},{"title":303,"icon":306},{"title":303,"description":1131},"6_6JJg9tHQGEV3goeZfL0LIrMCYl9_6kmyxWHvAN2Sw",[1139,1141],{"title":298,"path":299,"stem":300,"description":1140,"icon":301,"children":-1},"Subscribe to wide events flowing through evlog — in-process with createStreamDrain, or over the network with the local SSE stream server.",{"title":156,"path":308,"stem":309,"description":1142,"icon":310,"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.",1778349279792]