[{"data":1,"prerenderedAt":2164},["ShallowReactive",2],{"navigation_docs":3,"-extend-stream":612,"-extend-stream-surround":2159},[4,35,85,148,328,489,548,587],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Start","\u002Fstart","1.start",[9,14,19,24,29],{"title":10,"path":11,"stem":12,"icon":13},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction","i-lucide-info",{"title":15,"path":16,"stem":17,"icon":18},"Why start with evlog","\u002Fstart\u002Fwhy-evlog","1.start\u002F2.why-evlog","i-lucide-rocket",{"title":20,"path":21,"stem":22,"icon":23},"Installation","\u002Fstart\u002Finstallation","1.start\u002F3.installation","i-lucide-download",{"title":25,"path":26,"stem":27,"icon":28},"Quick Start","\u002Fstart\u002Fquick-start","1.start\u002F4.quick-start","i-lucide-zap",{"title":30,"path":31,"stem":32,"icon":33},"Choose your logger","\u002Fstart\u002Ftypescript-logging-library","1.start\u002F5.typescript-logging-library","i-lucide-file-code",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Learn","\u002Flearn","2.learn",[40,45,50,55,60,65,70,75,80],{"title":41,"path":42,"stem":43,"icon":44},"Overview","\u002Flearn\u002Foverview","2.learn\u002F0.overview","i-lucide-list",{"title":46,"path":47,"stem":48,"icon":49},"Simple Logging","\u002Flearn\u002Fsimple-logging","2.learn\u002F1.simple-logging","i-lucide-terminal",{"title":51,"path":52,"stem":53,"icon":54},"Wide Events","\u002Flearn\u002Fwide-events","2.learn\u002F2.wide-events","i-lucide-layers",{"title":56,"path":57,"stem":58,"icon":59},"Structured Errors","\u002Flearn\u002Fstructured-errors","2.learn\u002F3.structured-errors","i-lucide-shield-alert",{"title":61,"path":62,"stem":63,"icon":64},"Lifecycle","\u002Flearn\u002Flifecycle","2.learn\u002F4.lifecycle","i-lucide-arrow-right-left",{"title":66,"path":67,"stem":68,"icon":69},"Sampling","\u002Flearn\u002Fsampling","2.learn\u002F5.sampling","i-lucide-filter",{"title":71,"path":72,"stem":73,"icon":74},"Auto-Redaction","\u002Flearn\u002Fredaction","2.learn\u002F6.redaction","i-lucide-eye-off",{"title":76,"path":77,"stem":78,"icon":79},"Typed Fields","\u002Flearn\u002Ftyped-fields","2.learn\u002F7.typed-fields","i-simple-icons-typescript",{"title":81,"path":82,"stem":83,"icon":84},"Catalogs","\u002Flearn\u002Fcatalogs","2.learn\u002F8.catalogs","i-lucide-book-open",{"title":86,"path":87,"stem":88,"children":89,"page":34},"CLI","\u002Fcli","3.cli",[90,93,98,103,108,113,118,123,128,133,138,143],{"title":41,"path":91,"stem":92,"icon":49},"\u002Fcli\u002Foverview","3.cli\u002F0.overview",{"title":94,"path":95,"stem":96,"icon":97},"init","\u002Fcli\u002Finit","3.cli\u002F1.init","i-lucide-wand-sparkles",{"title":99,"path":100,"stem":101,"icon":102},"logs","\u002Fcli\u002Flogs","3.cli\u002F10.logs","i-lucide-scroll-text",{"title":104,"path":105,"stem":106,"icon":107},"config","\u002Fcli\u002Fconfig","3.cli\u002F11.config","i-lucide-settings-2",{"title":109,"path":110,"stem":111,"icon":112},"map","\u002Fcli\u002Fmap","3.cli\u002F2.map","i-lucide-radar",{"title":114,"path":115,"stem":116,"icon":117},"Rules","\u002Fcli\u002Frules","3.cli\u002F3.rules","i-lucide-list-checks",{"title":119,"path":120,"stem":121,"icon":122},"Scoring","\u002Fcli\u002Fscoring","3.cli\u002F4.scoring","i-lucide-gauge",{"title":124,"path":125,"stem":126,"icon":127},"CI","\u002Fcli\u002Fci","3.cli\u002F5.ci","i-lucide-git-pull-request",{"title":129,"path":130,"stem":131,"icon":132},"doctor","\u002Fcli\u002Fdoctor","3.cli\u002F6.doctor","i-lucide-stethoscope",{"title":134,"path":135,"stem":136,"icon":137},"telemetry","\u002Fcli\u002Ftelemetry","3.cli\u002F7.telemetry","i-lucide-bar-chart-3",{"title":139,"path":140,"stem":141,"icon":142},"agents","\u002Fcli\u002Fagents","3.cli\u002F8.agents","i-lucide-bot",{"title":144,"path":145,"stem":146,"icon":147},"Observability Score","\u002Fcli\u002Fobservability-score","3.cli\u002F9.observability-score","i-lucide-activity",{"title":149,"path":150,"stem":151,"children":152,"page":34},"Integrate","\u002Fintegrate","4.integrate",[153,157,240],{"title":41,"path":154,"stem":155,"icon":156},"\u002Fintegrate\u002Foverview","4.integrate\u002F0.overview","i-lucide-plug",{"title":158,"path":159,"stem":160,"children":161,"page":34},"Adapters","\u002Fintegrate\u002Fadapters","4.integrate\u002Fadapters",[162,165,195,220],{"title":41,"path":163,"stem":164,"icon":44},"\u002Fintegrate\u002Fadapters\u002Foverview","4.integrate\u002Fadapters\u002F01.overview",{"title":166,"path":167,"stem":168,"children":169,"page":34},"Cloud","\u002Fintegrate\u002Fadapters\u002Fcloud","4.integrate\u002Fadapters\u002Fcloud",[170,175,180,185,190],{"title":171,"path":172,"stem":173,"icon":174},"Axiom","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Faxiom","4.integrate\u002Fadapters\u002Fcloud\u002F01.axiom","i-custom-axiom",{"title":176,"path":177,"stem":178,"icon":179},"PostHog","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fposthog","4.integrate\u002Fadapters\u002Fcloud\u002F02.posthog","i-simple-icons-posthog",{"title":181,"path":182,"stem":183,"icon":184},"Sentry","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fsentry","4.integrate\u002Fadapters\u002Fcloud\u002F03.sentry","i-simple-icons-sentry",{"title":186,"path":187,"stem":188,"icon":189},"Better Stack","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fbetter-stack","4.integrate\u002Fadapters\u002Fcloud\u002F04.better-stack","i-simple-icons-betterstack",{"title":191,"path":192,"stem":193,"icon":194},"Datadog","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fdatadog","4.integrate\u002Fadapters\u002Fcloud\u002F05.datadog","i-simple-icons-datadog",{"title":196,"path":197,"stem":198,"children":199,"page":34},"Cloud or Self-Hosted","\u002Fintegrate\u002Fadapters\u002Fhybrid","4.integrate\u002Fadapters\u002Fhybrid",[200,205,210,215],{"title":201,"path":202,"stem":203,"icon":204},"Grafana Loki","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Floki","4.integrate\u002Fadapters\u002Fhybrid\u002F01.loki","i-simple-icons-grafana",{"title":206,"path":207,"stem":208,"icon":209},"ClickHouse","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fclickhouse","4.integrate\u002Fadapters\u002Fhybrid\u002F02.clickhouse","i-simple-icons-clickhouse",{"title":211,"path":212,"stem":213,"icon":214},"OTLP","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fotlp","4.integrate\u002Fadapters\u002Fhybrid\u002F03.otlp","i-simple-icons-opentelemetry",{"title":216,"path":217,"stem":218,"icon":219},"HyperDX","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fhyperdx","4.integrate\u002Fadapters\u002Fhybrid\u002F04.hyperdx","i-custom-hyperdx",{"title":221,"path":222,"stem":223,"children":224,"page":34},"Self-Hosted","\u002Fintegrate\u002Fadapters\u002Fself-hosted","4.integrate\u002Fadapters\u002Fself-hosted",[225,230,235],{"title":226,"path":227,"stem":228,"icon":229},"File System","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Ffs","4.integrate\u002Fadapters\u002Fself-hosted\u002F01.fs","i-lucide-hard-drive",{"title":231,"path":232,"stem":233,"icon":234},"NuxtHub","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Fnuxthub","4.integrate\u002Fadapters\u002Fself-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":236,"path":237,"stem":238,"icon":239},"Memory","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Fmemory","4.integrate\u002Fadapters\u002Fself-hosted\u002F03.memory","i-lucide-cpu",{"title":241,"path":242,"stem":243,"children":244,"page":34},"Frameworks","\u002Fintegrate\u002Fframeworks","4.integrate\u002Fframeworks",[245,249,254,259,264,269,274,279,284,289,294,299,304,309,313,318,323],{"title":41,"path":246,"stem":247,"icon":248},"\u002Fintegrate\u002Fframeworks\u002Foverview","4.integrate\u002Fframeworks\u002F00.overview","i-lucide-layout-grid",{"title":250,"path":251,"stem":252,"icon":253},"Nuxt","\u002Fintegrate\u002Fframeworks\u002Fnuxt","4.integrate\u002Fframeworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":255,"path":256,"stem":257,"icon":258},"Next.js","\u002Fintegrate\u002Fframeworks\u002Fnextjs","4.integrate\u002Fframeworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":260,"path":261,"stem":262,"icon":263},"SvelteKit","\u002Fintegrate\u002Fframeworks\u002Fsveltekit","4.integrate\u002Fframeworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":265,"path":266,"stem":267,"icon":268},"Nitro","\u002Fintegrate\u002Fframeworks\u002Fnitro","4.integrate\u002Fframeworks\u002F04.nitro","i-custom-nitro",{"title":270,"path":271,"stem":272,"icon":273},"TanStack Start","\u002Fintegrate\u002Fframeworks\u002Ftanstack-start","4.integrate\u002Fframeworks\u002F05.tanstack-start","i-custom-tanstack",{"title":275,"path":276,"stem":277,"icon":278},"NestJS","\u002Fintegrate\u002Fframeworks\u002Fnestjs","4.integrate\u002Fframeworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":280,"path":281,"stem":282,"icon":283},"Express","\u002Fintegrate\u002Fframeworks\u002Fexpress","4.integrate\u002Fframeworks\u002F07.express","i-simple-icons-express",{"title":285,"path":286,"stem":287,"icon":288},"Hono","\u002Fintegrate\u002Fframeworks\u002Fhono","4.integrate\u002Fframeworks\u002F08.hono","i-simple-icons-hono",{"title":290,"path":291,"stem":292,"icon":293},"Fastify","\u002Fintegrate\u002Fframeworks\u002Ffastify","4.integrate\u002Fframeworks\u002F09.fastify","i-simple-icons-fastify",{"title":295,"path":296,"stem":297,"icon":298},"Elysia","\u002Fintegrate\u002Fframeworks\u002Felysia","4.integrate\u002Fframeworks\u002F10.elysia","i-custom-elysia",{"title":300,"path":301,"stem":302,"icon":303},"React Router","\u002Fintegrate\u002Fframeworks\u002Freact-router","4.integrate\u002Fframeworks\u002F11.react-router","i-custom-reactrouter",{"title":305,"path":306,"stem":307,"icon":308},"Cloudflare Workers","\u002Fintegrate\u002Fframeworks\u002Fcloudflare-workers","4.integrate\u002Fframeworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":310,"path":311,"stem":312,"icon":79},"Standalone","\u002Fintegrate\u002Fframeworks\u002Fstandalone","4.integrate\u002Fframeworks\u002F13.standalone",{"title":314,"path":315,"stem":316,"icon":317},"Astro","\u002Fintegrate\u002Fframeworks\u002Fastro","4.integrate\u002Fframeworks\u002F14.astro","i-simple-icons-astro",{"title":319,"path":320,"stem":321,"icon":322},"oRPC","\u002Fintegrate\u002Fframeworks\u002Forpc","4.integrate\u002Fframeworks\u002F15.orpc","i-lucide-network",{"title":324,"path":325,"stem":326,"icon":327},"AWS Lambda","\u002Fintegrate\u002Fframeworks\u002Faws-lambda","4.integrate\u002Fframeworks\u002F16.aws-lambda","i-custom-lambda",{"title":329,"path":330,"stem":331,"children":332,"page":34},"Use Cases","\u002Fuse-cases","5.use-cases",[333,336,341,369,396,428,449,454,459,463],{"title":41,"path":334,"stem":335,"icon":117},"\u002Fuse-cases\u002Foverview","5.use-cases\u002F0.overview",{"title":337,"path":338,"stem":339,"icon":340},"Client Logging","\u002Fuse-cases\u002Fclient-logging","5.use-cases\u002F1.client-logging","i-lucide-monitor",{"title":342,"icon":343,"path":344,"stem":345,"children":346,"page":34},"AI SDK","i-simple-icons-vercel","\u002Fuse-cases\u002Fai-sdk","5.use-cases\u002F2.ai-sdk",[347,350,355,360,365],{"title":41,"path":348,"stem":349,"icon":44},"\u002Fuse-cases\u002Fai-sdk\u002Foverview","5.use-cases\u002F2.ai-sdk\u002F01.overview",{"title":351,"path":352,"stem":353,"icon":354},"Usage","\u002Fuse-cases\u002Fai-sdk\u002Fusage","5.use-cases\u002F2.ai-sdk\u002F02.usage","i-lucide-code",{"title":356,"path":357,"stem":358,"icon":359},"Options","\u002Fuse-cases\u002Fai-sdk\u002Foptions","5.use-cases\u002F2.ai-sdk\u002F03.options","i-lucide-sliders",{"title":361,"path":362,"stem":363,"icon":364},"Metadata","\u002Fuse-cases\u002Fai-sdk\u002Fmetadata","5.use-cases\u002F2.ai-sdk\u002F04.metadata","i-lucide-database",{"title":366,"path":367,"stem":368,"icon":147},"Telemetry","\u002Fuse-cases\u002Fai-sdk\u002Ftelemetry","5.use-cases\u002F2.ai-sdk\u002F05.telemetry",{"title":370,"icon":371,"path":372,"stem":373,"children":374,"page":34},"Better Auth","i-simple-icons-betterauth","\u002Fuse-cases\u002Fbetter-auth","5.use-cases\u002F3.better-auth",[375,378,383,388,392],{"title":41,"path":376,"stem":377,"icon":44},"\u002Fuse-cases\u002Fbetter-auth\u002Foverview","5.use-cases\u002F3.better-auth\u002F01.overview",{"title":379,"path":380,"stem":381,"icon":382},"Identify User","\u002Fuse-cases\u002Fbetter-auth\u002Fidentify-user","5.use-cases\u002F3.better-auth\u002F02.identify-user","i-lucide-user-check",{"title":384,"path":385,"stem":386,"icon":387},"Middleware","\u002Fuse-cases\u002Fbetter-auth\u002Fmiddleware","5.use-cases\u002F3.better-auth\u002F03.middleware","i-lucide-shield",{"title":389,"path":390,"stem":391,"icon":340},"Client Sync","\u002Fuse-cases\u002Fbetter-auth\u002Fclient-sync","5.use-cases\u002F3.better-auth\u002F04.client-sync",{"title":393,"path":394,"stem":395,"icon":122},"Performance","\u002Fuse-cases\u002Fbetter-auth\u002Fperformance","5.use-cases\u002F3.better-auth\u002F05.performance",{"title":397,"icon":398,"path":399,"stem":400,"children":401,"page":34},"Audit Logs","i-lucide-shield-check","\u002Fuse-cases\u002Faudit","5.use-cases\u002F4.audit",[402,405,410,415,420,424],{"title":41,"path":403,"stem":404,"icon":44},"\u002Fuse-cases\u002Faudit\u002Foverview","5.use-cases\u002F4.audit\u002F01.overview",{"title":406,"path":407,"stem":408,"icon":409},"Schema","\u002Fuse-cases\u002Faudit\u002Fschema","5.use-cases\u002F4.audit\u002F02.schema","i-lucide-file-text",{"title":411,"path":412,"stem":413,"icon":414},"Recording","\u002Fuse-cases\u002Faudit\u002Frecording","5.use-cases\u002F4.audit\u002F03.recording","i-lucide-pen-line",{"title":416,"path":417,"stem":418,"icon":419},"Drains","\u002Fuse-cases\u002Faudit\u002Fpipeline","5.use-cases\u002F4.audit\u002F04.pipeline","i-lucide-link",{"title":421,"path":422,"stem":423,"icon":398},"Compliance","\u002Fuse-cases\u002Faudit\u002Fcompliance","5.use-cases\u002F4.audit\u002F05.compliance",{"title":425,"path":426,"stem":427,"icon":84},"Recipes","\u002Fuse-cases\u002Faudit\u002Frecipes","5.use-cases\u002F4.audit\u002F06.recipes",{"title":366,"icon":122,"path":429,"stem":430,"children":431,"page":34},"\u002Fuse-cases\u002Ftelemetry","5.use-cases\u002F4.telemetry",[432,435,440,445],{"title":41,"path":433,"stem":434,"icon":44},"\u002Fuse-cases\u002Ftelemetry\u002Foverview","5.use-cases\u002F4.telemetry\u002F01.overview",{"title":436,"path":437,"stem":438,"icon":439},"Setup","\u002Fuse-cases\u002Ftelemetry\u002Fsetup","5.use-cases\u002F4.telemetry\u002F02.setup","i-lucide-wrench",{"title":441,"path":442,"stem":443,"icon":444},"Ingest","\u002Fuse-cases\u002Ftelemetry\u002Fingest","5.use-cases\u002F4.telemetry\u002F03.ingest","i-lucide-server",{"title":446,"path":447,"stem":448,"icon":84},"Reference","\u002Fuse-cases\u002Ftelemetry\u002Freference","5.use-cases\u002F4.telemetry\u002F04.reference",{"title":450,"path":451,"stem":452,"icon":453},"Enrichers","\u002Fuse-cases\u002Fenrichers","5.use-cases\u002F5.enrichers","i-lucide-sparkles",{"title":455,"path":456,"stem":457,"icon":458},"eve","\u002Fuse-cases\u002Feve","5.use-cases\u002F5.eve","i-custom-eve",{"title":460,"path":461,"stem":462,"icon":444},"Node.js request logging","\u002Fuse-cases\u002Fstructured-logging-nodejs","5.use-cases\u002F6.structured-logging-nodejs",{"title":464,"icon":465,"path":466,"stem":467,"children":468,"page":34},"Signals","i-lucide-scan-search","\u002Fuse-cases\u002Fsignals","5.use-cases\u002F7.signals",[469,472,477,482,485],{"title":41,"path":470,"stem":471,"icon":44},"\u002Fuse-cases\u002Fsignals\u002Foverview","5.use-cases\u002F7.signals\u002F01.overview",{"title":473,"path":474,"stem":475,"icon":476},"What You Can Ask","\u002Fuse-cases\u002Fsignals\u002Fask","5.use-cases\u002F7.signals\u002F02.ask","i-lucide-message-circle-question",{"title":478,"path":479,"stem":480,"icon":481},"What It Costs","\u002Fuse-cases\u002Fsignals\u002Fcost","5.use-cases\u002F7.signals\u002F03.cost","i-lucide-coins",{"title":446,"path":483,"stem":484,"icon":84},"\u002Fuse-cases\u002Fsignals\u002Freference","5.use-cases\u002F7.signals\u002F04.reference",{"title":425,"path":486,"stem":487,"icon":488},"\u002Fuse-cases\u002Fsignals\u002Frecipes","5.use-cases\u002F7.signals\u002F05.recipes","i-lucide-lightbulb",{"title":490,"path":491,"stem":492,"children":493,"page":34},"Extend","\u002Fextend","6.extend",[494,498,503,508,512,517,521,525,529,533,538,543],{"title":41,"path":495,"stem":496,"icon":497},"\u002Fextend\u002Foverview","6.extend\u002F0.overview","i-lucide-blocks",{"title":499,"path":500,"stem":501,"icon":502},"Stream","\u002Fextend\u002Fstream","6.extend\u002F1.stream","i-lucide-radio-tower",{"title":504,"path":505,"stem":506,"icon":507},"Custom framework","\u002Fextend\u002Fcustom-framework","6.extend\u002F10.custom-framework","i-lucide-puzzle",{"title":509,"path":510,"stem":511,"icon":502},"Diagnostics channel","\u002Fextend\u002Fdiagnostics-channel","6.extend\u002F11.diagnostics-channel",{"title":513,"path":514,"stem":515,"icon":516},"FS reader","\u002Fextend\u002Ffs-reader","6.extend\u002F2.fs-reader","i-lucide-folder-search",{"title":425,"path":518,"stem":519,"icon":520},"\u002Fextend\u002Fconsumer-recipes","6.extend\u002F3.consumer-recipes","i-lucide-chef-hat",{"title":522,"path":523,"stem":524,"icon":497},"Plugins","\u002Fextend\u002Fplugins","6.extend\u002F4.plugins",{"title":526,"path":527,"stem":528,"icon":453},"Custom enrichers","\u002Fextend\u002Fcustom-enrichers","6.extend\u002F5.custom-enrichers",{"title":530,"path":531,"stem":532,"icon":69},"Tail sampling","\u002Fextend\u002Ftail-sampling","6.extend\u002F6.tail-sampling",{"title":534,"path":535,"stem":536,"icon":537},"Identity headers","\u002Fextend\u002Fidentity-headers","6.extend\u002F7.identity-headers","i-lucide-fingerprint",{"title":539,"path":540,"stem":541,"icon":542},"Custom drains","\u002Fextend\u002Fcustom-drains","6.extend\u002F8.custom-drains","i-lucide-share-2",{"title":544,"path":545,"stem":546,"icon":547},"Drain pipeline","\u002Fextend\u002Fdrain-pipeline","6.extend\u002F9.drain-pipeline","i-lucide-workflow",{"title":446,"path":549,"stem":550,"children":551,"page":34},"\u002Freference","7.reference",[552,556,561,564,569,573,578,582],{"title":41,"path":553,"stem":554,"icon":555},"\u002Freference\u002Foverview","7.reference\u002F0.overview","i-lucide-book-marked",{"title":557,"path":558,"stem":559,"icon":560},"Configuration","\u002Freference\u002Fconfiguration","7.reference\u002F1.configuration","i-lucide-settings",{"title":393,"path":562,"stem":563,"icon":122},"\u002Freference\u002Fperformance","7.reference\u002F2.performance",{"title":565,"path":566,"stem":567,"icon":568},"Vite Plugin","\u002Freference\u002Fvite-plugin","7.reference\u002F3.vite-plugin","i-custom-vite",{"title":570,"path":571,"stem":572,"icon":398},"Best Practices","\u002Freference\u002Fbest-practices","7.reference\u002F4.best-practices",{"title":574,"path":575,"stem":576,"icon":577},"vs Other Loggers","\u002Freference\u002Fvs-other-loggers","7.reference\u002F5.vs-other-loggers","i-lucide-scale",{"title":579,"path":580,"stem":581,"icon":453},"Agent Skills","\u002Freference\u002Fagent-skills","7.reference\u002F6.agent-skills",{"title":583,"path":584,"stem":585,"icon":586},"Cost","\u002Freference\u002Fcost","7.reference\u002F7.cost","i-lucide-receipt",{"title":588,"path":589,"stem":590,"children":591,"page":34},"Compare","\u002Fcompare","8.compare",[592,596,600,604,608],{"title":593,"path":594,"stem":595,"icon":577},"evlog vs Pino","\u002Fcompare\u002Fpino","8.compare\u002F1.pino",{"title":597,"path":598,"stem":599,"icon":214},"evlog vs OpenTelemetry","\u002Fcompare\u002Fopentelemetry","8.compare\u002F2.opentelemetry",{"title":601,"path":602,"stem":603,"icon":577},"evlog vs LogTape","\u002Fcompare\u002Flogtape","8.compare\u002F3.logtape",{"title":605,"path":606,"stem":607,"icon":577},"evlog vs Winston: formats and request events","\u002Fcompare\u002Fwinston","8.compare\u002F4.winston",{"title":609,"path":610,"stem":611,"icon":577},"evlog vs Consola: reporters and request context","\u002Fcompare\u002Fconsola","8.compare\u002F5.consola",{"id":613,"title":499,"body":614,"description":2152,"extension":2153,"links":2154,"meta":2155,"navigation":2156,"path":500,"seo":2157,"stem":501,"__hash__":2158},"docs\u002F6.extend\u002F1.stream.md",{"type":615,"value":616,"toc":2139},"minimark",[617,626,650,665,669,672,677,754,1073,1077,1164,1173,1177,1180,1189,1195,1265,1269,1275,1313,1316,1320,1589,1602,1606,1609,1625,1628,1700,1703,1758,1762,1768,1856,2022,2026,2118,2122,2135],[618,619,620,621,625],"p",{},"evlog ships a ",[622,623,624],"strong",{},"stream primitive"," so any local consumer can subscribe to wide events without re-implementing a drain. There are two layers, building on each other:",[627,628,629,641],"ul",{},[630,631,632,635,636,640],"li",{},[622,633,634],{},"In-process bus",": ",[637,638,639],"code",{},"createStreamDrain()",", the canonical pub\u002Fsub. Sync listeners, async iterators, ring-buffered replay.",[630,642,643,635,646,649],{},[622,644,645],{},"Network bridge",[637,647,648],{},"startStreamServer()",", an opt-in HTTP mini-server that exposes the in-process bus over Server-Sent Events for browsers, CLIs, or external devtools.",[651,652,653,656,657,660,661,664],"callout",{"icon":387},[622,654,655],{},"Local-only by design."," Both layers live inside a single Node \u002F Bun \u002F Deno process. They work in ",[637,658,659],{},"pnpm dev",", on long-lived self-hosted servers, on VMs and containers (Fly, Railway, Coolify…). They do ",[622,662,663],{},"not"," work on serverless platforms (Vercel Functions, Cloudflare Workers, AWS Lambda), each invocation is an isolated process. Use a real broker (Redis Streams, NATS, Pub\u002FSub) for cross-instance fan-out there.",[666,667,634],"h2",{"id":668},"in-process-bus",[670,671],"stream-bus",{},[618,673,674,676],{},[637,675,639],{}," is just a drain. Register it on the evlog drain hook and subscribe to events as they're emitted: no HTTP, no serialization, no extra hops.",[678,679,682,685,745],"prompt",{":actions":680,"description":681,"icon":502},"[\"copy\",\"cursor\",\"claude\"]","Subscribe to wide events in-process",[618,683,684],{},"Wire an in-process subscriber on top of evlog's stream drain.",[627,686,687,698,713,724,731,742],{},[630,688,689,690,693,694,697],{},"Import ",[637,691,692],{},"createStreamDrain"," from ",[637,695,696],{},"evlog\u002Fstream"," and call it once at app boot",[630,699,700,701,704,705,708,709,712],{},"Register the returned ",[637,702,703],{},"drain"," on the evlog drain hook for my framework (Nitro: ",[637,706,707],{},"nitroApp.hooks.hook('evlog:drain', stream.drain)","; Next\u002Fstandalone: pass to ",[637,710,711],{},"initLogger({ drain })",")",[630,714,715,716,719,720,723],{},"Subscribe with ",[637,717,718],{},"stream.subscribe((event) => ...)"," for sync listeners or ",[637,721,722],{},"for await (const event of stream.events())"," for async iteration",[630,725,726,727,730],{},"Seed history for late subscribers with ",[637,728,729],{},"stream.recent()"," (snapshot of the ring buffer) before opening the live iterator",[630,732,733,734,737,738,741],{},"Tune ",[637,735,736],{},"buffer"," for replay history and ",[637,739,740],{},"perSubscriberQueue"," for slow-consumer backpressure",[630,743,744],{},"Skip on serverless platforms. The stream is in-process, so isolated invocations won't share it",[618,746,747,748],{},"Docs: ",[749,750,751],"a",{"href":751,"rel":752},"https:\u002F\u002Fwww.evlog.dev\u002Fextend\u002Fstream",[753],"nofollow",[755,756,761],"pre",{"className":757,"code":758,"language":759,"meta":760,"style":760},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createStreamDrain } from 'evlog\u002Fstream'\n\nconst stream = createStreamDrain({ buffer: 200 })\n\nnitroApp.hooks.hook('evlog:drain', stream.drain)\n\nconst off = stream.subscribe((event) => {\n  if (event.level === 'error') notify(event)\n})\noff()\n\nfor (const past of stream.recent()) {\n  bootstrap(past)\n}\nfor await (const event of stream.events()) {\n  bootstrap(event)\n}\n","ts","",[637,762,763,795,802,840,845,883,888,921,959,967,976,981,1010,1023,1029,1057,1068],{"__ignoreMap":760},[764,765,768,772,776,780,783,786,789,792],"span",{"class":766,"line":767},"line",1,[764,769,771],{"class":770},"s7zQu","import",[764,773,775],{"class":774},"sMK4o"," {",[764,777,779],{"class":778},"sTEyZ"," createStreamDrain",[764,781,782],{"class":774}," }",[764,784,785],{"class":770}," from",[764,787,788],{"class":774}," '",[764,790,696],{"class":791},"sfazB",[764,793,794],{"class":774},"'\n",[764,796,798],{"class":766,"line":797},2,[764,799,801],{"emptyLinePlaceholder":800},true,"\n",[764,803,805,809,812,815,818,821,824,828,831,835,837],{"class":766,"line":804},3,[764,806,808],{"class":807},"spNyl","const",[764,810,811],{"class":778}," stream ",[764,813,814],{"class":774},"=",[764,816,779],{"class":817},"s2Zo4",[764,819,820],{"class":778},"(",[764,822,823],{"class":774},"{",[764,825,827],{"class":826},"swJcz"," buffer",[764,829,830],{"class":774},":",[764,832,834],{"class":833},"sbssI"," 200",[764,836,782],{"class":774},[764,838,839],{"class":778},")\n",[764,841,843],{"class":766,"line":842},4,[764,844,801],{"emptyLinePlaceholder":800},[764,846,848,851,854,857,859,862,864,867,870,872,875,878,880],{"class":766,"line":847},5,[764,849,850],{"class":778},"nitroApp",[764,852,853],{"class":774},".",[764,855,856],{"class":778},"hooks",[764,858,853],{"class":774},[764,860,861],{"class":817},"hook",[764,863,820],{"class":778},[764,865,866],{"class":774},"'",[764,868,869],{"class":791},"evlog:drain",[764,871,866],{"class":774},[764,873,874],{"class":774},",",[764,876,877],{"class":778}," stream",[764,879,853],{"class":774},[764,881,882],{"class":778},"drain)\n",[764,884,886],{"class":766,"line":885},6,[764,887,801],{"emptyLinePlaceholder":800},[764,889,891,893,896,898,900,902,905,907,909,913,915,918],{"class":766,"line":890},7,[764,892,808],{"class":807},[764,894,895],{"class":778}," off ",[764,897,814],{"class":774},[764,899,877],{"class":778},[764,901,853],{"class":774},[764,903,904],{"class":817},"subscribe",[764,906,820],{"class":778},[764,908,820],{"class":774},[764,910,912],{"class":911},"sHdIc","event",[764,914,712],{"class":774},[764,916,917],{"class":807}," =>",[764,919,920],{"class":774}," {\n",[764,922,924,927,930,932,934,937,940,942,945,947,950,953,955,957],{"class":766,"line":923},8,[764,925,926],{"class":770},"  if",[764,928,929],{"class":826}," (",[764,931,912],{"class":778},[764,933,853],{"class":774},[764,935,936],{"class":778},"level",[764,938,939],{"class":774}," ===",[764,941,788],{"class":774},[764,943,944],{"class":791},"error",[764,946,866],{"class":774},[764,948,949],{"class":826},") ",[764,951,952],{"class":817},"notify",[764,954,820],{"class":826},[764,956,912],{"class":778},[764,958,839],{"class":826},[764,960,962,965],{"class":766,"line":961},9,[764,963,964],{"class":774},"}",[764,966,839],{"class":778},[764,968,970,973],{"class":766,"line":969},10,[764,971,972],{"class":817},"off",[764,974,975],{"class":778},"()\n",[764,977,979],{"class":766,"line":978},11,[764,980,801],{"emptyLinePlaceholder":800},[764,982,984,987,989,991,994,997,999,1001,1004,1007],{"class":766,"line":983},12,[764,985,986],{"class":770},"for",[764,988,929],{"class":778},[764,990,808],{"class":807},[764,992,993],{"class":778}," past ",[764,995,996],{"class":774},"of",[764,998,877],{"class":778},[764,1000,853],{"class":774},[764,1002,1003],{"class":817},"recent",[764,1005,1006],{"class":778},"()) ",[764,1008,1009],{"class":774},"{\n",[764,1011,1013,1016,1018,1021],{"class":766,"line":1012},13,[764,1014,1015],{"class":817},"  bootstrap",[764,1017,820],{"class":826},[764,1019,1020],{"class":778},"past",[764,1022,839],{"class":826},[764,1024,1026],{"class":766,"line":1025},14,[764,1027,1028],{"class":774},"}\n",[764,1030,1032,1034,1037,1039,1041,1044,1046,1048,1050,1053,1055],{"class":766,"line":1031},15,[764,1033,986],{"class":770},[764,1035,1036],{"class":770}," await",[764,1038,929],{"class":778},[764,1040,808],{"class":807},[764,1042,1043],{"class":778}," event ",[764,1045,996],{"class":774},[764,1047,877],{"class":778},[764,1049,853],{"class":774},[764,1051,1052],{"class":817},"events",[764,1054,1006],{"class":778},[764,1056,1009],{"class":774},[764,1058,1060,1062,1064,1066],{"class":766,"line":1059},16,[764,1061,1015],{"class":817},[764,1063,820],{"class":826},[764,1065,912],{"class":778},[764,1067,839],{"class":826},[764,1069,1071],{"class":766,"line":1070},17,[764,1072,1028],{"class":774},[1074,1075,356],"h3",{"id":1076},"options",[1078,1079,1080,1096],"table",{},[1081,1082,1083],"thead",{},[1084,1085,1086,1090,1093],"tr",{},[1087,1088,1089],"th",{},"Option",[1087,1091,1092],{},"Type",[1087,1094,1095],{},"Description",[1097,1098,1099,1125,1145],"tbody",{},[1084,1100,1101,1106,1111],{},[1102,1103,1104],"td",{},[637,1105,736],{},[1102,1107,1108],{},[637,1109,1110],{},"number",[1102,1112,1113,1114,1117,1118,1121,1122,853],{},"Ring-buffer size for ",[637,1115,1116],{},"recent()"," snapshots. Set to ",[637,1119,1120],{},"0"," to disable. Default: ",[637,1123,1124],{},"500",[1084,1126,1127,1131,1135],{},[1102,1128,1129],{},[637,1130,740],{},[1102,1132,1133],{},[637,1134,1110],{},[1102,1136,1137,1138,1141,1142,853],{},"Max queued events per ",[637,1139,1140],{},"events()"," async iterator before the oldest are dropped. The drain itself is never blocked. Default: ",[637,1143,1144],{},"1000",[1084,1146,1147,1152,1157],{},[1102,1148,1149],{},[637,1150,1151],{},"filter",[1102,1153,1154],{},[637,1155,1156],{},"(event) => boolean",[1102,1158,1159,1160,1163],{},"Optional predicate run on each drained event — return ",[637,1161,1162],{},"false"," to skip the event entirely (neither buffered nor delivered).",[618,1165,1166,1169,1170,1172],{},[637,1167,1168],{},"stream.drain(events)"," accepts either a single event or a batch. ",[637,1171,729],{}," returns a snapshot of the buffered events (oldest first, most recent last) for ad-hoc inspection or to seed a UI panel.",[666,1174,1176],{"id":1175},"network-bridge-stream-server","Network bridge: stream server",[1178,1179],"sse-wire",{},[618,1181,1182,1184,1185,1188],{},[637,1183,648],{}," boots a tiny ",[637,1186,1187],{},"node:http"," server in the same process as your app, on its own ephemeral port, and exposes the in-process bus over Server-Sent Events. Any consumer (browser tab, CLI, Tauri\u002FElectron devtool) can subscribe, and your application API is untouched.",[651,1190,1191,1194],{"icon":387},[622,1192,1193],{},"Strict opt-in."," Nothing starts unless you set the option explicitly. There is no auto-enable in dev, and the server only boots when you ask for it.",[678,1196,1199,1202,1260],{":actions":680,"description":1197,"icon":1198},"Expose the evlog stream over SSE","i-lucide-radio",[618,1200,1201],{},"Turn on the local stream server so I can subscribe to wide events from a browser tab, CLI, or Tauri\u002FElectron devtool.",[627,1203,1204,1228,1235,1246,1257],{},[630,1205,1206,1207,1210,1211,1214,1215,1210,1218,1221,1222,1224,1225,1227],{},"Detect my framework and opt in explicitly (Nuxt: ",[637,1208,1209],{},"evlog.stream: true"," in ",[637,1212,1213],{},"nuxt.config.ts","; Next.js: ",[637,1216,1217],{},"defineStreamedInstrumentation({ stream: true })",[637,1219,1220],{},"instrumentation.ts","; Hono\u002FExpress\u002FFastify\u002FElysia\u002Fstandalone: call ",[637,1223,648],{}," once at boot and register the returned ",[637,1226,703],{}," on the evlog drain hook)",[630,1229,1230,1231,1234],{},"Never enable in production by default; gate it behind ",[637,1232,1233],{},"process.env.NODE_ENV !== 'production'"," or a feature flag",[630,1236,1237,1238,1241,1242,1245],{},"For shared dev environments, set ",[637,1239,1240],{},"token: process.env.EVLOG_STREAM_TOKEN"," and have the consumer send it as ",[637,1243,1244],{},"Authorization: Bearer \u003Ctoken>"," on every request",[630,1247,1248,1249,1252,1253,1256],{},"Discover the URL from ",[637,1250,1251],{},".evlog\u002Fstream.url"," (or ",[637,1254,1255],{},"\u002Fapi\u002F_evlog\u002Fstream-info"," on Nuxt), and never hard-code the port, which is ephemeral",[630,1258,1259],{},"Skip on serverless platforms. The server is in-process",[618,1261,747,1262],{},[749,1263,751],{"href":751,"rel":1264},[753],[1074,1266,1268],{"id":1267},"what-boots-up","What boots up",[618,1270,1271,1272,1274],{},"When you opt in, evlog calls ",[637,1273,648],{}," and:",[1276,1277,1278,1281,1291,1296,1299,1302],"ol",{},[630,1279,1280],{},"Picks an ephemeral free port (or the one you specify)",[630,1282,1283,1284,1286,1287,1290],{},"Spins a tiny ",[637,1285,1187],{}," server on ",[637,1288,1289],{},"127.0.0.1"," (or your host)",[630,1292,1293,1294],{},"Writes the discovered URL to ",[637,1295,1251],{},[630,1297,1298],{},"Prints a one-line banner in the server console",[630,1300,1301],{},"Hooks the in-process stream drain into the evlog pipeline",[630,1303,1304,1305,1308,1309,1312],{},"Exposes ",[637,1306,1307],{},"GET \u002F"," for the SSE stream and ",[637,1310,1311],{},"GET \u002Finfo"," for handshake metadata",[618,1314,1315],{},"On shutdown (SIGINT \u002F SIGTERM \u002F process exit) the server cleans up listeners and removes the URL file.",[1074,1317,1319],{"id":1318},"per-framework-opt-in","Per-framework opt-in",[1321,1322,1323,1405,1474],"framework-tabs",{},[755,1324,1326],{"className":757,"code":1325,"filename":250,"language":759,"meta":1213,"style":760},"export default defineNuxtConfig({\n  modules: ['evlog\u002Fnuxt'],\n  evlog: {\n    stream: true,\n    \u002F\u002F or: stream: { port: 4444, token: process.env.EVLOG_STREAM_TOKEN }\n  },\n})\n",[637,1327,1328,1343,1366,1375,1388,1394,1399],{"__ignoreMap":760},[764,1329,1330,1333,1336,1339,1341],{"class":766,"line":767},[764,1331,1332],{"class":770},"export",[764,1334,1335],{"class":770}," default",[764,1337,1338],{"class":817}," defineNuxtConfig",[764,1340,820],{"class":778},[764,1342,1009],{"class":774},[764,1344,1345,1348,1350,1353,1355,1358,1360,1363],{"class":766,"line":797},[764,1346,1347],{"class":826},"  modules",[764,1349,830],{"class":774},[764,1351,1352],{"class":778}," [",[764,1354,866],{"class":774},[764,1356,1357],{"class":791},"evlog\u002Fnuxt",[764,1359,866],{"class":774},[764,1361,1362],{"class":778},"]",[764,1364,1365],{"class":774},",\n",[764,1367,1368,1371,1373],{"class":766,"line":804},[764,1369,1370],{"class":826},"  evlog",[764,1372,830],{"class":774},[764,1374,920],{"class":774},[764,1376,1377,1380,1382,1386],{"class":766,"line":842},[764,1378,1379],{"class":826},"    stream",[764,1381,830],{"class":774},[764,1383,1385],{"class":1384},"sfNiH"," true",[764,1387,1365],{"class":774},[764,1389,1390],{"class":766,"line":847},[764,1391,1393],{"class":1392},"sHwdD","    \u002F\u002F or: stream: { port: 4444, token: process.env.EVLOG_STREAM_TOKEN }\n",[764,1395,1396],{"class":766,"line":885},[764,1397,1398],{"class":774},"  },\n",[764,1400,1401,1403],{"class":766,"line":890},[764,1402,964],{"class":774},[764,1404,839],{"class":778},[755,1406,1408],{"className":757,"code":1407,"filename":255,"language":759,"meta":1220,"style":760},"import { defineStreamedInstrumentation } from 'evlog\u002Fnext\u002Fstream'\n\nexport const { register } = defineStreamedInstrumentation({\n  stream: true,\n})\n",[637,1409,1410,1430,1434,1457,1468],{"__ignoreMap":760},[764,1411,1412,1414,1416,1419,1421,1423,1425,1428],{"class":766,"line":767},[764,1413,771],{"class":770},[764,1415,775],{"class":774},[764,1417,1418],{"class":778}," defineStreamedInstrumentation",[764,1420,782],{"class":774},[764,1422,785],{"class":770},[764,1424,788],{"class":774},[764,1426,1427],{"class":791},"evlog\u002Fnext\u002Fstream",[764,1429,794],{"class":774},[764,1431,1432],{"class":766,"line":797},[764,1433,801],{"emptyLinePlaceholder":800},[764,1435,1436,1438,1441,1443,1446,1448,1451,1453,1455],{"class":766,"line":804},[764,1437,1332],{"class":770},[764,1439,1440],{"class":807}," const",[764,1442,775],{"class":774},[764,1444,1445],{"class":778}," register ",[764,1447,964],{"class":774},[764,1449,1450],{"class":774}," =",[764,1452,1418],{"class":817},[764,1454,820],{"class":778},[764,1456,1009],{"class":774},[764,1458,1459,1462,1464,1466],{"class":766,"line":842},[764,1460,1461],{"class":826},"  stream",[764,1463,830],{"class":774},[764,1465,1385],{"class":1384},[764,1467,1365],{"class":774},[764,1469,1470,1472],{"class":766,"line":847},[764,1471,964],{"class":774},[764,1473,839],{"class":778},[755,1475,1478],{"className":757,"code":1476,"filename":1477,"language":759,"meta":760,"style":760},"import { startStreamServer } from 'evlog\u002Fstream'\n\nif (process.env.NODE_ENV !== 'production' && process.env.EVLOG_STREAM === '1') {\n  const { drain } = await startStreamServer()\n  \u002F\u002F Plug `drain` into the evlog drain hook for your framework\n}\n","Hono \u002F Express \u002F Fastify \u002F standalone",[637,1479,1480,1499,1503,1560,1580,1585],{"__ignoreMap":760},[764,1481,1482,1484,1486,1489,1491,1493,1495,1497],{"class":766,"line":767},[764,1483,771],{"class":770},[764,1485,775],{"class":774},[764,1487,1488],{"class":778}," startStreamServer",[764,1490,782],{"class":774},[764,1492,785],{"class":770},[764,1494,788],{"class":774},[764,1496,696],{"class":791},[764,1498,794],{"class":774},[764,1500,1501],{"class":766,"line":797},[764,1502,801],{"emptyLinePlaceholder":800},[764,1504,1505,1508,1511,1513,1516,1518,1521,1524,1526,1529,1531,1534,1537,1539,1541,1543,1546,1549,1551,1554,1556,1558],{"class":766,"line":804},[764,1506,1507],{"class":770},"if",[764,1509,1510],{"class":778}," (process",[764,1512,853],{"class":774},[764,1514,1515],{"class":778},"env",[764,1517,853],{"class":774},[764,1519,1520],{"class":778},"NODE_ENV ",[764,1522,1523],{"class":774},"!==",[764,1525,788],{"class":774},[764,1527,1528],{"class":791},"production",[764,1530,866],{"class":774},[764,1532,1533],{"class":774}," &&",[764,1535,1536],{"class":778}," process",[764,1538,853],{"class":774},[764,1540,1515],{"class":778},[764,1542,853],{"class":774},[764,1544,1545],{"class":778},"EVLOG_STREAM ",[764,1547,1548],{"class":774},"===",[764,1550,788],{"class":774},[764,1552,1553],{"class":791},"1",[764,1555,866],{"class":774},[764,1557,949],{"class":778},[764,1559,1009],{"class":774},[764,1561,1562,1565,1567,1570,1572,1574,1576,1578],{"class":766,"line":842},[764,1563,1564],{"class":807},"  const",[764,1566,775],{"class":774},[764,1568,1569],{"class":778}," drain",[764,1571,782],{"class":774},[764,1573,1450],{"class":774},[764,1575,1036],{"class":770},[764,1577,1488],{"class":817},[764,1579,975],{"class":826},[764,1581,1582],{"class":766,"line":847},[764,1583,1584],{"class":1392},"  \u002F\u002F Plug `drain` into the evlog drain hook for your framework\n",[764,1586,1587],{"class":766,"line":885},[764,1588,1028],{"class":774},[618,1590,1591,1592,1594,1595,1598,1599,1601],{},"The Hono \u002F Express \u002F Fastify integrations don't need a \"feature PR\", because ",[637,1593,648],{}," is ",[622,1596,1597],{},"orthogonal"," to your framework. You boot it once and connect its ",[637,1600,703],{}," to the evlog pipeline like any other drain.",[1074,1603,1605],{"id":1604},"discovery","Discovery",[618,1607,1608],{},"The mini-server runs on a random port, so any consumer must discover it.",[755,1610,1612],{"className":757,"code":1611,"filename":1251,"language":759,"meta":760,"style":760},"http:\u002F\u002F127.0.0.1:53942\n",[637,1613,1614],{"__ignoreMap":760},[764,1615,1616,1620,1622],{"class":766,"line":767},[764,1617,1619],{"class":1618},"sBMFI","http",[764,1621,830],{"class":774},[764,1623,1624],{"class":1392},"\u002F\u002F127.0.0.1:53942\n",[618,1626,1627],{},"Read directly from disk:",[755,1629,1631],{"className":757,"code":1630,"language":759,"meta":760,"style":760},"import { readFile } from 'node:fs\u002Fpromises'\n\nconst url = (await readFile('.evlog\u002Fstream.url', 'utf-8')).trim()\n",[637,1632,1633,1653,1657],{"__ignoreMap":760},[764,1634,1635,1637,1639,1642,1644,1646,1648,1651],{"class":766,"line":767},[764,1636,771],{"class":770},[764,1638,775],{"class":774},[764,1640,1641],{"class":778}," readFile",[764,1643,782],{"class":774},[764,1645,785],{"class":770},[764,1647,788],{"class":774},[764,1649,1650],{"class":791},"node:fs\u002Fpromises",[764,1652,794],{"class":774},[764,1654,1655],{"class":766,"line":797},[764,1656,801],{"emptyLinePlaceholder":800},[764,1658,1659,1661,1664,1666,1668,1671,1673,1675,1677,1679,1681,1683,1685,1688,1690,1693,1695,1698],{"class":766,"line":804},[764,1660,808],{"class":807},[764,1662,1663],{"class":778}," url ",[764,1665,814],{"class":774},[764,1667,929],{"class":778},[764,1669,1670],{"class":770},"await",[764,1672,1641],{"class":817},[764,1674,820],{"class":778},[764,1676,866],{"class":774},[764,1678,1251],{"class":791},[764,1680,866],{"class":774},[764,1682,874],{"class":774},[764,1684,788],{"class":774},[764,1686,1687],{"class":791},"utf-8",[764,1689,866],{"class":774},[764,1691,1692],{"class":778},"))",[764,1694,853],{"class":774},[764,1696,1697],{"class":817},"trim",[764,1699,975],{"class":778},[618,1701,1702],{},"Or, for same-origin browser tabs in a Nuxt app, hit the discovery route:",[755,1704,1706],{"className":757,"code":1705,"language":759,"meta":760,"style":760},"const { url } = await fetch('\u002Fapi\u002F_evlog\u002Fstream-info').then(r => r.json())\n",[637,1707,1708],{"__ignoreMap":760},[764,1709,1710,1712,1714,1716,1718,1720,1722,1725,1727,1729,1731,1733,1735,1737,1740,1742,1745,1747,1750,1752,1755],{"class":766,"line":767},[764,1711,808],{"class":807},[764,1713,775],{"class":774},[764,1715,1663],{"class":778},[764,1717,964],{"class":774},[764,1719,1450],{"class":774},[764,1721,1036],{"class":770},[764,1723,1724],{"class":817}," fetch",[764,1726,820],{"class":778},[764,1728,866],{"class":774},[764,1730,1255],{"class":791},[764,1732,866],{"class":774},[764,1734,712],{"class":778},[764,1736,853],{"class":774},[764,1738,1739],{"class":817},"then",[764,1741,820],{"class":778},[764,1743,1744],{"class":911},"r",[764,1746,917],{"class":807},[764,1748,1749],{"class":778}," r",[764,1751,853],{"class":774},[764,1753,1754],{"class":817},"json",[764,1756,1757],{"class":778},"())\n",[1074,1759,1761],{"id":1760},"wire-format","Wire format",[618,1763,1764,1765,830],{},"Every SSE message has the shape ",[637,1766,1767],{},"{ evlog: '1', type, data }",[1078,1769,1770,1787],{},[1081,1771,1772],{},[1084,1773,1774,1779,1782],{},[1087,1775,1776],{},[637,1777,1778],{},"type",[1087,1780,1781],{},"When",[1087,1783,1784],{},[637,1785,1786],{},"data",[1097,1788,1789,1804,1825,1838],{},[1084,1790,1791,1796,1799],{},[1102,1792,1793],{},[637,1794,1795],{},"hello",[1102,1797,1798],{},"First frame after connect",[1102,1800,1801],{},[637,1802,1803],{},"{ evlogVersion, bufferSize, heartbeatMs }",[1084,1805,1806,1811,1820],{},[1102,1807,1808],{},[637,1809,1810],{},"replay",[1102,1812,1813,1814,1816,1817],{},"Right after ",[637,1815,1795],{},", replays buffered events when the consumer passed ",[637,1818,1819],{},"?since=\u003Ciso>",[1102,1821,1822],{},[637,1823,1824],{},"WideEvent",[1084,1826,1827,1831,1834],{},[1102,1828,1829],{},[637,1830,912],{},[1102,1832,1833],{},"Every emitted event after that",[1102,1835,1836],{},[637,1837,1824],{},[1084,1839,1840,1845,1851],{},[1102,1841,1842],{},[637,1843,1844],{},"ping",[1102,1846,1847,1848,712],{},"Heartbeat (default every 15s, configurable via ",[637,1849,1850],{},"heartbeatMs",[1102,1852,1853],{},[637,1854,1855],{},"{ ts: number }",[755,1857,1860],{"className":757,"code":1858,"filename":1859,"language":759,"meta":760,"style":760},"const { url } = await fetch('\u002Fapi\u002F_evlog\u002Fstream-info').then(r => r.json())\nconst es = new EventSource(url)\n\nes.onmessage = (msg) => {\n  const { type, data } = JSON.parse(msg.data)\n  if (type === 'event') events.push(data)\n}\n","Browser consumer",[637,1861,1862,1906,1924,1928,1951,1987,2018],{"__ignoreMap":760},[764,1863,1864,1866,1868,1870,1872,1874,1876,1878,1880,1882,1884,1886,1888,1890,1892,1894,1896,1898,1900,1902,1904],{"class":766,"line":767},[764,1865,808],{"class":807},[764,1867,775],{"class":774},[764,1869,1663],{"class":778},[764,1871,964],{"class":774},[764,1873,1450],{"class":774},[764,1875,1036],{"class":770},[764,1877,1724],{"class":817},[764,1879,820],{"class":778},[764,1881,866],{"class":774},[764,1883,1255],{"class":791},[764,1885,866],{"class":774},[764,1887,712],{"class":778},[764,1889,853],{"class":774},[764,1891,1739],{"class":817},[764,1893,820],{"class":778},[764,1895,1744],{"class":911},[764,1897,917],{"class":807},[764,1899,1749],{"class":778},[764,1901,853],{"class":774},[764,1903,1754],{"class":817},[764,1905,1757],{"class":778},[764,1907,1908,1910,1913,1915,1918,1921],{"class":766,"line":797},[764,1909,808],{"class":807},[764,1911,1912],{"class":778}," es ",[764,1914,814],{"class":774},[764,1916,1917],{"class":774}," new",[764,1919,1920],{"class":817}," EventSource",[764,1922,1923],{"class":778},"(url)\n",[764,1925,1926],{"class":766,"line":804},[764,1927,801],{"emptyLinePlaceholder":800},[764,1929,1930,1933,1935,1938,1940,1942,1945,1947,1949],{"class":766,"line":842},[764,1931,1932],{"class":778},"es",[764,1934,853],{"class":774},[764,1936,1937],{"class":817},"onmessage",[764,1939,1450],{"class":774},[764,1941,929],{"class":774},[764,1943,1944],{"class":911},"msg",[764,1946,712],{"class":774},[764,1948,917],{"class":807},[764,1950,920],{"class":774},[764,1952,1953,1955,1957,1960,1962,1965,1967,1969,1972,1974,1977,1979,1981,1983,1985],{"class":766,"line":847},[764,1954,1564],{"class":807},[764,1956,775],{"class":774},[764,1958,1959],{"class":778}," type",[764,1961,874],{"class":774},[764,1963,1964],{"class":778}," data",[764,1966,782],{"class":774},[764,1968,1450],{"class":774},[764,1970,1971],{"class":778}," JSON",[764,1973,853],{"class":774},[764,1975,1976],{"class":817},"parse",[764,1978,820],{"class":826},[764,1980,1944],{"class":778},[764,1982,853],{"class":774},[764,1984,1786],{"class":778},[764,1986,839],{"class":826},[764,1988,1989,1991,1993,1995,1997,1999,2001,2003,2005,2007,2009,2012,2014,2016],{"class":766,"line":885},[764,1990,926],{"class":770},[764,1992,929],{"class":826},[764,1994,1778],{"class":778},[764,1996,939],{"class":774},[764,1998,788],{"class":774},[764,2000,912],{"class":791},[764,2002,866],{"class":774},[764,2004,949],{"class":826},[764,2006,1052],{"class":778},[764,2008,853],{"class":774},[764,2010,2011],{"class":817},"push",[764,2013,820],{"class":826},[764,2015,1786],{"class":778},[764,2017,839],{"class":826},[764,2019,2020],{"class":766,"line":890},[764,2021,1028],{"class":774},[1074,2023,2025],{"id":2024},"auth-cors","Auth + CORS",[1078,2027,2028,2037],{},[1081,2029,2030],{},[1084,2031,2032,2034],{},[1087,2033,1089],{},[1087,2035,2036],{},"Behavior",[1097,2038,2039,2052,2074,2091,2104],{},[1084,2040,2041,2046],{},[1102,2042,2043],{},[637,2044,2045],{},"token",[1102,2047,2048,2049,2051],{},"When set, the server requires ",[637,2050,1244],{}," on every request and 401s otherwise.",[1084,2053,2054,2057],{},[1102,2055,2056],{},"(no token)",[1102,2058,2059,2060,2063,2064,2066,2067,2066,2070,2073],{},"Connections are accepted only when there is no ",[637,2061,2062],{},"Origin"," header or the origin host is local (",[637,2065,1289],{}," \u002F ",[637,2068,2069],{},"localhost",[637,2071,2072],{},"[::1]","). Other origins receive 403.",[1084,2075,2076,2081],{},[1102,2077,2078],{},[637,2079,2080],{},"host",[1102,2082,2083,2084,2086,2087,2090],{},"Default ",[637,2085,1289],{}," — never reachable from the LAN. Override to ",[637,2088,2089],{},"0.0.0.0"," only with a token set.",[1084,2092,2093,2097],{},[1102,2094,2095],{},[637,2096,1850],{},[1102,2098,2099,2100,2103],{},"Heartbeat interval (default ",[637,2101,2102],{},"15000",").",[1084,2105,2106,2110],{},[1102,2107,2108],{},[637,2109,736],{},[1102,2111,2112,2113,2115,2116,853],{},"Ring buffer kept on the underlying default stream — replayed for late-joining clients via ",[637,2114,1819],{},". Default ",[637,2117,1124],{},[666,2119,2121],{"id":2120},"going-further","Going further",[627,2123,2124,2129],{},[630,2125,2126,2128],{},[749,2127,513],{"href":514},": replay or tail historic NDJSON files (cross-process, survives restarts)",[630,2130,2131,2134],{},[749,2132,2133],{"href":518},"Consumer recipes",": build a minimal devtool, pipe to curl + jq, replay history then go live",[2136,2137,2138],"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 pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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 .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 .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":760,"searchDepth":797,"depth":797,"links":2140},[2141,2144,2151],{"id":668,"depth":797,"text":634,"children":2142},[2143],{"id":1076,"depth":804,"text":356},{"id":1175,"depth":797,"text":1176,"children":2145},[2146,2147,2148,2149,2150],{"id":1267,"depth":804,"text":1268},{"id":1318,"depth":804,"text":1319},{"id":1604,"depth":804,"text":1605},{"id":1760,"depth":804,"text":1761},{"id":2024,"depth":804,"text":2025},{"id":2120,"depth":797,"text":2121},"Subscribe to wide events flowing through evlog — in-process with createStreamDrain, or over the network with the local SSE stream server.","md",null,{},{"title":499,"icon":502},{"title":499,"description":2152},"hR8VmfRhZ3YWSXNZSWq2GFrF8uX-onuBB5RVaJVbRN8",[2160,2162],{"title":41,"path":495,"stem":496,"description":2161,"icon":497,"children":-1},"Observe what flows through the pipeline, plug into it, or build your own bricks. The map of every extension point evlog exposes.",{"title":504,"path":505,"stem":506,"description":2163,"icon":507,"children":-1},"Build evlog support for a framework or runtime that has no integration, with defineFrameworkIntegration or the lower-level helpers.",1791636537992]