[{"data":1,"prerenderedAt":2163},["ShallowReactive",2],{"navigation_docs":3,"-extend-stream":612,"-extend-stream-surround":2158},[4,35,85,138,318,453,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],{"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},"map","\u002Fcli\u002Fmap","3.cli\u002F2.map","i-lucide-radar",{"title":104,"path":105,"stem":106,"icon":107},"Rules","\u002Fcli\u002Frules","3.cli\u002F3.rules","i-lucide-list-checks",{"title":109,"path":110,"stem":111,"icon":112},"Scoring","\u002Fcli\u002Fscoring","3.cli\u002F4.scoring","i-lucide-gauge",{"title":114,"path":115,"stem":116,"icon":117},"CI","\u002Fcli\u002Fci","3.cli\u002F5.ci","i-lucide-git-pull-request",{"title":119,"path":120,"stem":121,"icon":122},"doctor","\u002Fcli\u002Fdoctor","3.cli\u002F6.doctor","i-lucide-stethoscope",{"title":124,"path":125,"stem":126,"icon":127},"telemetry","\u002Fcli\u002Ftelemetry","3.cli\u002F7.telemetry","i-lucide-bar-chart-3",{"title":129,"path":130,"stem":131,"icon":132},"agents","\u002Fcli\u002Fagents","3.cli\u002F8.agents","i-lucide-bot",{"title":134,"path":135,"stem":136,"icon":137},"Observability Score","\u002Fcli\u002Fobservability-score","3.cli\u002F9.observability-score","i-lucide-activity",{"title":139,"path":140,"stem":141,"children":142,"page":34},"Integrate","\u002Fintegrate","4.integrate",[143,147,230],{"title":41,"path":144,"stem":145,"icon":146},"\u002Fintegrate\u002Foverview","4.integrate\u002F0.overview","i-lucide-plug",{"title":148,"path":149,"stem":150,"children":151,"page":34},"Adapters","\u002Fintegrate\u002Fadapters","4.integrate\u002Fadapters",[152,155,185,210],{"title":41,"path":153,"stem":154,"icon":44},"\u002Fintegrate\u002Fadapters\u002Foverview","4.integrate\u002Fadapters\u002F01.overview",{"title":156,"path":157,"stem":158,"children":159,"page":34},"Cloud","\u002Fintegrate\u002Fadapters\u002Fcloud","4.integrate\u002Fadapters\u002Fcloud",[160,165,170,175,180],{"title":161,"path":162,"stem":163,"icon":164},"Axiom","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Faxiom","4.integrate\u002Fadapters\u002Fcloud\u002F01.axiom","i-custom-axiom",{"title":166,"path":167,"stem":168,"icon":169},"PostHog","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fposthog","4.integrate\u002Fadapters\u002Fcloud\u002F02.posthog","i-simple-icons-posthog",{"title":171,"path":172,"stem":173,"icon":174},"Sentry","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fsentry","4.integrate\u002Fadapters\u002Fcloud\u002F03.sentry","i-simple-icons-sentry",{"title":176,"path":177,"stem":178,"icon":179},"Better Stack","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fbetter-stack","4.integrate\u002Fadapters\u002Fcloud\u002F04.better-stack","i-simple-icons-betterstack",{"title":181,"path":182,"stem":183,"icon":184},"Datadog","\u002Fintegrate\u002Fadapters\u002Fcloud\u002Fdatadog","4.integrate\u002Fadapters\u002Fcloud\u002F05.datadog","i-simple-icons-datadog",{"title":186,"path":187,"stem":188,"children":189,"page":34},"Cloud or Self-Hosted","\u002Fintegrate\u002Fadapters\u002Fhybrid","4.integrate\u002Fadapters\u002Fhybrid",[190,195,200,205],{"title":191,"path":192,"stem":193,"icon":194},"Grafana Loki","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Floki","4.integrate\u002Fadapters\u002Fhybrid\u002F01.loki","i-simple-icons-grafana",{"title":196,"path":197,"stem":198,"icon":199},"ClickHouse","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fclickhouse","4.integrate\u002Fadapters\u002Fhybrid\u002F02.clickhouse","i-simple-icons-clickhouse",{"title":201,"path":202,"stem":203,"icon":204},"OTLP","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fotlp","4.integrate\u002Fadapters\u002Fhybrid\u002F03.otlp","i-simple-icons-opentelemetry",{"title":206,"path":207,"stem":208,"icon":209},"HyperDX","\u002Fintegrate\u002Fadapters\u002Fhybrid\u002Fhyperdx","4.integrate\u002Fadapters\u002Fhybrid\u002F04.hyperdx","i-custom-hyperdx",{"title":211,"path":212,"stem":213,"children":214,"page":34},"Self-Hosted","\u002Fintegrate\u002Fadapters\u002Fself-hosted","4.integrate\u002Fadapters\u002Fself-hosted",[215,220,225],{"title":216,"path":217,"stem":218,"icon":219},"File System","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Ffs","4.integrate\u002Fadapters\u002Fself-hosted\u002F01.fs","i-lucide-hard-drive",{"title":221,"path":222,"stem":223,"icon":224},"NuxtHub","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Fnuxthub","4.integrate\u002Fadapters\u002Fself-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":226,"path":227,"stem":228,"icon":229},"Memory","\u002Fintegrate\u002Fadapters\u002Fself-hosted\u002Fmemory","4.integrate\u002Fadapters\u002Fself-hosted\u002F03.memory","i-lucide-cpu",{"title":231,"path":232,"stem":233,"children":234,"page":34},"Frameworks","\u002Fintegrate\u002Fframeworks","4.integrate\u002Fframeworks",[235,239,244,249,254,259,264,269,274,279,284,289,294,299,303,308,313],{"title":41,"path":236,"stem":237,"icon":238},"\u002Fintegrate\u002Fframeworks\u002Foverview","4.integrate\u002Fframeworks\u002F00.overview","i-lucide-layout-grid",{"title":240,"path":241,"stem":242,"icon":243},"Nuxt","\u002Fintegrate\u002Fframeworks\u002Fnuxt","4.integrate\u002Fframeworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":245,"path":246,"stem":247,"icon":248},"Next.js","\u002Fintegrate\u002Fframeworks\u002Fnextjs","4.integrate\u002Fframeworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":250,"path":251,"stem":252,"icon":253},"SvelteKit","\u002Fintegrate\u002Fframeworks\u002Fsveltekit","4.integrate\u002Fframeworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":255,"path":256,"stem":257,"icon":258},"Nitro","\u002Fintegrate\u002Fframeworks\u002Fnitro","4.integrate\u002Fframeworks\u002F04.nitro","i-custom-nitro",{"title":260,"path":261,"stem":262,"icon":263},"TanStack Start","\u002Fintegrate\u002Fframeworks\u002Ftanstack-start","4.integrate\u002Fframeworks\u002F05.tanstack-start","i-custom-tanstack",{"title":265,"path":266,"stem":267,"icon":268},"NestJS","\u002Fintegrate\u002Fframeworks\u002Fnestjs","4.integrate\u002Fframeworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":270,"path":271,"stem":272,"icon":273},"Express","\u002Fintegrate\u002Fframeworks\u002Fexpress","4.integrate\u002Fframeworks\u002F07.express","i-simple-icons-express",{"title":275,"path":276,"stem":277,"icon":278},"Hono","\u002Fintegrate\u002Fframeworks\u002Fhono","4.integrate\u002Fframeworks\u002F08.hono","i-simple-icons-hono",{"title":280,"path":281,"stem":282,"icon":283},"Fastify","\u002Fintegrate\u002Fframeworks\u002Ffastify","4.integrate\u002Fframeworks\u002F09.fastify","i-simple-icons-fastify",{"title":285,"path":286,"stem":287,"icon":288},"Elysia","\u002Fintegrate\u002Fframeworks\u002Felysia","4.integrate\u002Fframeworks\u002F10.elysia","i-custom-elysia",{"title":290,"path":291,"stem":292,"icon":293},"React Router","\u002Fintegrate\u002Fframeworks\u002Freact-router","4.integrate\u002Fframeworks\u002F11.react-router","i-custom-reactrouter",{"title":295,"path":296,"stem":297,"icon":298},"Cloudflare Workers","\u002Fintegrate\u002Fframeworks\u002Fcloudflare-workers","4.integrate\u002Fframeworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":300,"path":301,"stem":302,"icon":79},"Standalone","\u002Fintegrate\u002Fframeworks\u002Fstandalone","4.integrate\u002Fframeworks\u002F13.standalone",{"title":304,"path":305,"stem":306,"icon":307},"Astro","\u002Fintegrate\u002Fframeworks\u002Fastro","4.integrate\u002Fframeworks\u002F14.astro","i-simple-icons-astro",{"title":309,"path":310,"stem":311,"icon":312},"oRPC","\u002Fintegrate\u002Fframeworks\u002Forpc","4.integrate\u002Fframeworks\u002F15.orpc","i-lucide-network",{"title":314,"path":315,"stem":316,"icon":317},"AWS Lambda","\u002Fintegrate\u002Fframeworks\u002Faws-lambda","4.integrate\u002Fframeworks\u002F16.aws-lambda","i-custom-lambda",{"title":319,"path":320,"stem":321,"children":322,"page":34},"Use Cases","\u002Fuse-cases","5.use-cases",[323,326,331,359,386,418,439,444,449],{"title":41,"path":324,"stem":325,"icon":107},"\u002Fuse-cases\u002Foverview","5.use-cases\u002F0.overview",{"title":327,"path":328,"stem":329,"icon":330},"Client Logging","\u002Fuse-cases\u002Fclient-logging","5.use-cases\u002F1.client-logging","i-lucide-monitor",{"title":332,"icon":333,"path":334,"stem":335,"children":336,"page":34},"AI SDK","i-simple-icons-vercel","\u002Fuse-cases\u002Fai-sdk","5.use-cases\u002F2.ai-sdk",[337,340,345,350,355],{"title":41,"path":338,"stem":339,"icon":44},"\u002Fuse-cases\u002Fai-sdk\u002Foverview","5.use-cases\u002F2.ai-sdk\u002F01.overview",{"title":341,"path":342,"stem":343,"icon":344},"Usage","\u002Fuse-cases\u002Fai-sdk\u002Fusage","5.use-cases\u002F2.ai-sdk\u002F02.usage","i-lucide-code",{"title":346,"path":347,"stem":348,"icon":349},"Options","\u002Fuse-cases\u002Fai-sdk\u002Foptions","5.use-cases\u002F2.ai-sdk\u002F03.options","i-lucide-sliders",{"title":351,"path":352,"stem":353,"icon":354},"Metadata","\u002Fuse-cases\u002Fai-sdk\u002Fmetadata","5.use-cases\u002F2.ai-sdk\u002F04.metadata","i-lucide-database",{"title":356,"path":357,"stem":358,"icon":137},"Telemetry","\u002Fuse-cases\u002Fai-sdk\u002Ftelemetry","5.use-cases\u002F2.ai-sdk\u002F05.telemetry",{"title":360,"icon":361,"path":362,"stem":363,"children":364,"page":34},"Better Auth","i-simple-icons-betterauth","\u002Fuse-cases\u002Fbetter-auth","5.use-cases\u002F3.better-auth",[365,368,373,378,382],{"title":41,"path":366,"stem":367,"icon":44},"\u002Fuse-cases\u002Fbetter-auth\u002Foverview","5.use-cases\u002F3.better-auth\u002F01.overview",{"title":369,"path":370,"stem":371,"icon":372},"Identify User","\u002Fuse-cases\u002Fbetter-auth\u002Fidentify-user","5.use-cases\u002F3.better-auth\u002F02.identify-user","i-lucide-user-check",{"title":374,"path":375,"stem":376,"icon":377},"Middleware","\u002Fuse-cases\u002Fbetter-auth\u002Fmiddleware","5.use-cases\u002F3.better-auth\u002F03.middleware","i-lucide-shield",{"title":379,"path":380,"stem":381,"icon":330},"Client Sync","\u002Fuse-cases\u002Fbetter-auth\u002Fclient-sync","5.use-cases\u002F3.better-auth\u002F04.client-sync",{"title":383,"path":384,"stem":385,"icon":112},"Performance","\u002Fuse-cases\u002Fbetter-auth\u002Fperformance","5.use-cases\u002F3.better-auth\u002F05.performance",{"title":387,"icon":388,"path":389,"stem":390,"children":391,"page":34},"Audit Logs","i-lucide-shield-check","\u002Fuse-cases\u002Faudit","5.use-cases\u002F4.audit",[392,395,400,405,410,414],{"title":41,"path":393,"stem":394,"icon":44},"\u002Fuse-cases\u002Faudit\u002Foverview","5.use-cases\u002F4.audit\u002F01.overview",{"title":396,"path":397,"stem":398,"icon":399},"Schema","\u002Fuse-cases\u002Faudit\u002Fschema","5.use-cases\u002F4.audit\u002F02.schema","i-lucide-file-text",{"title":401,"path":402,"stem":403,"icon":404},"Recording","\u002Fuse-cases\u002Faudit\u002Frecording","5.use-cases\u002F4.audit\u002F03.recording","i-lucide-pen-line",{"title":406,"path":407,"stem":408,"icon":409},"Drains","\u002Fuse-cases\u002Faudit\u002Fpipeline","5.use-cases\u002F4.audit\u002F04.pipeline","i-lucide-link",{"title":411,"path":412,"stem":413,"icon":388},"Compliance","\u002Fuse-cases\u002Faudit\u002Fcompliance","5.use-cases\u002F4.audit\u002F05.compliance",{"title":415,"path":416,"stem":417,"icon":84},"Recipes","\u002Fuse-cases\u002Faudit\u002Frecipes","5.use-cases\u002F4.audit\u002F06.recipes",{"title":356,"icon":112,"path":419,"stem":420,"children":421,"page":34},"\u002Fuse-cases\u002Ftelemetry","5.use-cases\u002F4.telemetry",[422,425,430,435],{"title":41,"path":423,"stem":424,"icon":44},"\u002Fuse-cases\u002Ftelemetry\u002Foverview","5.use-cases\u002F4.telemetry\u002F01.overview",{"title":426,"path":427,"stem":428,"icon":429},"Setup","\u002Fuse-cases\u002Ftelemetry\u002Fsetup","5.use-cases\u002F4.telemetry\u002F02.setup","i-lucide-wrench",{"title":431,"path":432,"stem":433,"icon":434},"Ingest","\u002Fuse-cases\u002Ftelemetry\u002Fingest","5.use-cases\u002F4.telemetry\u002F03.ingest","i-lucide-server",{"title":436,"path":437,"stem":438,"icon":84},"Reference","\u002Fuse-cases\u002Ftelemetry\u002Freference","5.use-cases\u002F4.telemetry\u002F04.reference",{"title":440,"path":441,"stem":442,"icon":443},"Enrichers","\u002Fuse-cases\u002Fenrichers","5.use-cases\u002F5.enrichers","i-lucide-sparkles",{"title":445,"path":446,"stem":447,"icon":448},"eve","\u002Fuse-cases\u002Feve","5.use-cases\u002F5.eve","i-custom-eve",{"title":450,"path":451,"stem":452,"icon":434},"Node.js request logging","\u002Fuse-cases\u002Fstructured-logging-nodejs","5.use-cases\u002F6.structured-logging-nodejs",{"title":454,"path":455,"stem":456,"children":457,"page":34},"Libraries","\u002Flibraries","6.libraries",[458,462,467,470,474,479,484],{"title":41,"path":459,"stem":460,"icon":461},"\u002Flibraries\u002Foverview","6.libraries\u002F0.overview","i-lucide-package",{"title":463,"path":464,"stem":465,"icon":466},"Emitting Events","\u002Flibraries\u002Femitting","6.libraries\u002F1.emitting","i-lucide-radio",{"title":56,"path":468,"stem":469,"icon":59},"\u002Flibraries\u002Ferrors","6.libraries\u002F2.errors",{"title":471,"path":472,"stem":473,"icon":132},"Errors Agents Can Act On","\u002Flibraries\u002Fagents","6.libraries\u002F3.agents",{"title":475,"path":476,"stem":477,"icon":478},"Exporting the Catalog","\u002Flibraries\u002Fexporting","6.libraries\u002F4.exporting","i-lucide-file-output",{"title":480,"path":481,"stem":482,"icon":483},"Migrating","\u002Flibraries\u002Fmigrating","6.libraries\u002F5.migrating","i-lucide-route",{"title":485,"path":486,"stem":487,"icon":488},"Testing","\u002Flibraries\u002Ftesting","6.libraries\u002F6.testing","i-lucide-flask-conical",{"title":490,"path":491,"stem":492,"children":493,"page":34},"Extend","\u002Fextend","7.extend",[494,498,503,508,512,517,521,525,529,533,538,543],{"title":41,"path":495,"stem":496,"icon":497},"\u002Fextend\u002Foverview","7.extend\u002F0.overview","i-lucide-blocks",{"title":499,"path":500,"stem":501,"icon":502},"Stream","\u002Fextend\u002Fstream","7.extend\u002F1.stream","i-lucide-radio-tower",{"title":504,"path":505,"stem":506,"icon":507},"Custom framework","\u002Fextend\u002Fcustom-framework","7.extend\u002F10.custom-framework","i-lucide-puzzle",{"title":509,"path":510,"stem":511,"icon":502},"Diagnostics channel","\u002Fextend\u002Fdiagnostics-channel","7.extend\u002F11.diagnostics-channel",{"title":513,"path":514,"stem":515,"icon":516},"FS reader","\u002Fextend\u002Ffs-reader","7.extend\u002F2.fs-reader","i-lucide-folder-search",{"title":415,"path":518,"stem":519,"icon":520},"\u002Fextend\u002Fconsumer-recipes","7.extend\u002F3.consumer-recipes","i-lucide-chef-hat",{"title":522,"path":523,"stem":524,"icon":497},"Plugins","\u002Fextend\u002Fplugins","7.extend\u002F4.plugins",{"title":526,"path":527,"stem":528,"icon":443},"Custom enrichers","\u002Fextend\u002Fcustom-enrichers","7.extend\u002F5.custom-enrichers",{"title":530,"path":531,"stem":532,"icon":69},"Tail sampling","\u002Fextend\u002Ftail-sampling","7.extend\u002F6.tail-sampling",{"title":534,"path":535,"stem":536,"icon":537},"Identity headers","\u002Fextend\u002Fidentity-headers","7.extend\u002F7.identity-headers","i-lucide-fingerprint",{"title":539,"path":540,"stem":541,"icon":542},"Custom drains","\u002Fextend\u002Fcustom-drains","7.extend\u002F8.custom-drains","i-lucide-share-2",{"title":544,"path":545,"stem":546,"icon":547},"Drain pipeline","\u002Fextend\u002Fdrain-pipeline","7.extend\u002F9.drain-pipeline","i-lucide-workflow",{"title":436,"path":549,"stem":550,"children":551,"page":34},"\u002Freference","8.reference",[552,556,561,564,569,573,578,582],{"title":41,"path":553,"stem":554,"icon":555},"\u002Freference\u002Foverview","8.reference\u002F0.overview","i-lucide-book-marked",{"title":557,"path":558,"stem":559,"icon":560},"Configuration","\u002Freference\u002Fconfiguration","8.reference\u002F1.configuration","i-lucide-settings",{"title":383,"path":562,"stem":563,"icon":112},"\u002Freference\u002Fperformance","8.reference\u002F2.performance",{"title":565,"path":566,"stem":567,"icon":568},"Vite Plugin","\u002Freference\u002Fvite-plugin","8.reference\u002F3.vite-plugin","i-custom-vite",{"title":570,"path":571,"stem":572,"icon":388},"Best Practices","\u002Freference\u002Fbest-practices","8.reference\u002F4.best-practices",{"title":574,"path":575,"stem":576,"icon":577},"vs Other Loggers","\u002Freference\u002Fvs-other-loggers","8.reference\u002F5.vs-other-loggers","i-lucide-scale",{"title":579,"path":580,"stem":581,"icon":443},"Agent Skills","\u002Freference\u002Fagent-skills","8.reference\u002F6.agent-skills",{"title":583,"path":584,"stem":585,"icon":586},"Cost","\u002Freference\u002Fcost","8.reference\u002F7.cost","i-lucide-receipt",{"title":588,"path":589,"stem":590,"children":591,"page":34},"Compare","\u002Fcompare","9.compare",[592,596,600,604,608],{"title":593,"path":594,"stem":595,"icon":577},"evlog vs Pino","\u002Fcompare\u002Fpino","9.compare\u002F1.pino",{"title":597,"path":598,"stem":599,"icon":204},"evlog vs OpenTelemetry","\u002Fcompare\u002Fopentelemetry","9.compare\u002F2.opentelemetry",{"title":601,"path":602,"stem":603,"icon":577},"evlog vs LogTape","\u002Fcompare\u002Flogtape","9.compare\u002F3.logtape",{"title":605,"path":606,"stem":607,"icon":577},"evlog vs Winston: formats and request events","\u002Fcompare\u002Fwinston","9.compare\u002F4.winston",{"title":609,"path":610,"stem":611,"icon":577},"evlog vs Consola: reporters and request context","\u002Fcompare\u002Fconsola","9.compare\u002F5.consola",{"id":613,"title":499,"body":614,"description":2151,"extension":2152,"links":2153,"meta":2154,"navigation":2155,"path":500,"seo":2156,"stem":501,"__hash__":2157},"docs\u002F7.extend\u002F1.stream.md",{"type":615,"value":616,"toc":2138},"minimark",[617,626,650,665,669,672,677,754,1073,1077,1164,1173,1177,1180,1189,1195,1264,1268,1274,1312,1315,1319,1588,1601,1605,1608,1624,1627,1699,1702,1757,1761,1767,1855,2021,2025,2117,2121,2134],[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":377},[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,346],"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":377},[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,1198,1201,1259],{":actions":680,"description":1197,"icon":466},"Expose the evlog stream over SSE",[618,1199,1200],{},"Turn on the local stream server so I can subscribe to wide events from a browser tab, CLI, or Tauri\u002FElectron devtool.",[627,1202,1203,1227,1234,1245,1256],{},[630,1204,1205,1206,1209,1210,1213,1214,1209,1217,1220,1221,1223,1224,1226],{},"Detect my framework and opt in explicitly (Nuxt: ",[637,1207,1208],{},"evlog.stream: true"," in ",[637,1211,1212],{},"nuxt.config.ts","; Next.js: ",[637,1215,1216],{},"defineStreamedInstrumentation({ stream: true })",[637,1218,1219],{},"instrumentation.ts","; Hono\u002FExpress\u002FFastify\u002FElysia\u002Fstandalone: call ",[637,1222,648],{}," once at boot and register the returned ",[637,1225,703],{}," on the evlog drain hook)",[630,1228,1229,1230,1233],{},"Never enable in production by default; gate it behind ",[637,1231,1232],{},"process.env.NODE_ENV !== 'production'"," or a feature flag",[630,1235,1236,1237,1240,1241,1244],{},"For shared dev environments, set ",[637,1238,1239],{},"token: process.env.EVLOG_STREAM_TOKEN"," and have the consumer send it as ",[637,1242,1243],{},"Authorization: Bearer \u003Ctoken>"," on every request",[630,1246,1247,1248,1251,1252,1255],{},"Discover the URL from ",[637,1249,1250],{},".evlog\u002Fstream.url"," (or ",[637,1253,1254],{},"\u002Fapi\u002F_evlog\u002Fstream-info"," on Nuxt), and never hard-code the port, which is ephemeral",[630,1257,1258],{},"Skip on serverless platforms. The server is in-process",[618,1260,747,1261],{},[749,1262,751],{"href":751,"rel":1263},[753],[1074,1265,1267],{"id":1266},"what-boots-up","What boots up",[618,1269,1270,1271,1273],{},"When you opt in, evlog calls ",[637,1272,648],{}," and:",[1275,1276,1277,1280,1290,1295,1298,1301],"ol",{},[630,1278,1279],{},"Picks an ephemeral free port (or the one you specify)",[630,1281,1282,1283,1285,1286,1289],{},"Spins a tiny ",[637,1284,1187],{}," server on ",[637,1287,1288],{},"127.0.0.1"," (or your host)",[630,1291,1292,1293],{},"Writes the discovered URL to ",[637,1294,1250],{},[630,1296,1297],{},"Prints a one-line banner in the server console",[630,1299,1300],{},"Hooks the in-process stream drain into the evlog pipeline",[630,1302,1303,1304,1307,1308,1311],{},"Exposes ",[637,1305,1306],{},"GET \u002F"," for the SSE stream and ",[637,1309,1310],{},"GET \u002Finfo"," for handshake metadata",[618,1313,1314],{},"On shutdown (SIGINT \u002F SIGTERM \u002F process exit) the server cleans up listeners and removes the URL file.",[1074,1316,1318],{"id":1317},"per-framework-opt-in","Per-framework opt-in",[1320,1321,1322,1404,1473],"code-group",{},[755,1323,1325],{"className":757,"code":1324,"filename":1212,"language":759,"meta":760,"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,1326,1327,1342,1365,1374,1387,1393,1398],{"__ignoreMap":760},[764,1328,1329,1332,1335,1338,1340],{"class":766,"line":767},[764,1330,1331],{"class":770},"export",[764,1333,1334],{"class":770}," default",[764,1336,1337],{"class":817}," defineNuxtConfig",[764,1339,820],{"class":778},[764,1341,1009],{"class":774},[764,1343,1344,1347,1349,1352,1354,1357,1359,1362],{"class":766,"line":797},[764,1345,1346],{"class":826},"  modules",[764,1348,830],{"class":774},[764,1350,1351],{"class":778}," [",[764,1353,866],{"class":774},[764,1355,1356],{"class":791},"evlog\u002Fnuxt",[764,1358,866],{"class":774},[764,1360,1361],{"class":778},"]",[764,1363,1364],{"class":774},",\n",[764,1366,1367,1370,1372],{"class":766,"line":804},[764,1368,1369],{"class":826},"  evlog",[764,1371,830],{"class":774},[764,1373,920],{"class":774},[764,1375,1376,1379,1381,1385],{"class":766,"line":842},[764,1377,1378],{"class":826},"    stream",[764,1380,830],{"class":774},[764,1382,1384],{"class":1383},"sfNiH"," true",[764,1386,1364],{"class":774},[764,1388,1389],{"class":766,"line":847},[764,1390,1392],{"class":1391},"sHwdD","    \u002F\u002F or: stream: { port: 4444, token: process.env.EVLOG_STREAM_TOKEN }\n",[764,1394,1395],{"class":766,"line":885},[764,1396,1397],{"class":774},"  },\n",[764,1399,1400,1402],{"class":766,"line":890},[764,1401,964],{"class":774},[764,1403,839],{"class":778},[755,1405,1407],{"className":757,"code":1406,"filename":1219,"language":759,"meta":760,"style":760},"import { defineStreamedInstrumentation } from 'evlog\u002Fnext\u002Fstream'\n\nexport const { register } = defineStreamedInstrumentation({\n  stream: true,\n})\n",[637,1408,1409,1429,1433,1456,1467],{"__ignoreMap":760},[764,1410,1411,1413,1415,1418,1420,1422,1424,1427],{"class":766,"line":767},[764,1412,771],{"class":770},[764,1414,775],{"class":774},[764,1416,1417],{"class":778}," defineStreamedInstrumentation",[764,1419,782],{"class":774},[764,1421,785],{"class":770},[764,1423,788],{"class":774},[764,1425,1426],{"class":791},"evlog\u002Fnext\u002Fstream",[764,1428,794],{"class":774},[764,1430,1431],{"class":766,"line":797},[764,1432,801],{"emptyLinePlaceholder":800},[764,1434,1435,1437,1440,1442,1445,1447,1450,1452,1454],{"class":766,"line":804},[764,1436,1331],{"class":770},[764,1438,1439],{"class":807}," const",[764,1441,775],{"class":774},[764,1443,1444],{"class":778}," register ",[764,1446,964],{"class":774},[764,1448,1449],{"class":774}," =",[764,1451,1417],{"class":817},[764,1453,820],{"class":778},[764,1455,1009],{"class":774},[764,1457,1458,1461,1463,1465],{"class":766,"line":842},[764,1459,1460],{"class":826},"  stream",[764,1462,830],{"class":774},[764,1464,1384],{"class":1383},[764,1466,1364],{"class":774},[764,1468,1469,1471],{"class":766,"line":847},[764,1470,964],{"class":774},[764,1472,839],{"class":778},[755,1474,1477],{"className":757,"code":1475,"filename":1476,"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,1478,1479,1498,1502,1559,1579,1584],{"__ignoreMap":760},[764,1480,1481,1483,1485,1488,1490,1492,1494,1496],{"class":766,"line":767},[764,1482,771],{"class":770},[764,1484,775],{"class":774},[764,1486,1487],{"class":778}," startStreamServer",[764,1489,782],{"class":774},[764,1491,785],{"class":770},[764,1493,788],{"class":774},[764,1495,696],{"class":791},[764,1497,794],{"class":774},[764,1499,1500],{"class":766,"line":797},[764,1501,801],{"emptyLinePlaceholder":800},[764,1503,1504,1507,1510,1512,1515,1517,1520,1523,1525,1528,1530,1533,1536,1538,1540,1542,1545,1548,1550,1553,1555,1557],{"class":766,"line":804},[764,1505,1506],{"class":770},"if",[764,1508,1509],{"class":778}," (process",[764,1511,853],{"class":774},[764,1513,1514],{"class":778},"env",[764,1516,853],{"class":774},[764,1518,1519],{"class":778},"NODE_ENV ",[764,1521,1522],{"class":774},"!==",[764,1524,788],{"class":774},[764,1526,1527],{"class":791},"production",[764,1529,866],{"class":774},[764,1531,1532],{"class":774}," &&",[764,1534,1535],{"class":778}," process",[764,1537,853],{"class":774},[764,1539,1514],{"class":778},[764,1541,853],{"class":774},[764,1543,1544],{"class":778},"EVLOG_STREAM ",[764,1546,1547],{"class":774},"===",[764,1549,788],{"class":774},[764,1551,1552],{"class":791},"1",[764,1554,866],{"class":774},[764,1556,949],{"class":778},[764,1558,1009],{"class":774},[764,1560,1561,1564,1566,1569,1571,1573,1575,1577],{"class":766,"line":842},[764,1562,1563],{"class":807},"  const",[764,1565,775],{"class":774},[764,1567,1568],{"class":778}," drain",[764,1570,782],{"class":774},[764,1572,1449],{"class":774},[764,1574,1036],{"class":770},[764,1576,1487],{"class":817},[764,1578,975],{"class":826},[764,1580,1581],{"class":766,"line":847},[764,1582,1583],{"class":1391},"  \u002F\u002F Plug `drain` into the evlog drain hook for your framework\n",[764,1585,1586],{"class":766,"line":885},[764,1587,1028],{"class":774},[618,1589,1590,1591,1593,1594,1597,1598,1600],{},"The Hono \u002F Express \u002F Fastify integrations don't need a \"feature PR\", because ",[637,1592,648],{}," is ",[622,1595,1596],{},"orthogonal"," to your framework. You boot it once and connect its ",[637,1599,703],{}," to the evlog pipeline like any other drain.",[1074,1602,1604],{"id":1603},"discovery","Discovery",[618,1606,1607],{},"The mini-server runs on a random port, so any consumer must discover it.",[755,1609,1611],{"className":757,"code":1610,"filename":1250,"language":759,"meta":760,"style":760},"http:\u002F\u002F127.0.0.1:53942\n",[637,1612,1613],{"__ignoreMap":760},[764,1614,1615,1619,1621],{"class":766,"line":767},[764,1616,1618],{"class":1617},"sBMFI","http",[764,1620,830],{"class":774},[764,1622,1623],{"class":1391},"\u002F\u002F127.0.0.1:53942\n",[618,1625,1626],{},"Read directly from disk:",[755,1628,1630],{"className":757,"code":1629,"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,1631,1632,1652,1656],{"__ignoreMap":760},[764,1633,1634,1636,1638,1641,1643,1645,1647,1650],{"class":766,"line":767},[764,1635,771],{"class":770},[764,1637,775],{"class":774},[764,1639,1640],{"class":778}," readFile",[764,1642,782],{"class":774},[764,1644,785],{"class":770},[764,1646,788],{"class":774},[764,1648,1649],{"class":791},"node:fs\u002Fpromises",[764,1651,794],{"class":774},[764,1653,1654],{"class":766,"line":797},[764,1655,801],{"emptyLinePlaceholder":800},[764,1657,1658,1660,1663,1665,1667,1670,1672,1674,1676,1678,1680,1682,1684,1687,1689,1692,1694,1697],{"class":766,"line":804},[764,1659,808],{"class":807},[764,1661,1662],{"class":778}," url ",[764,1664,814],{"class":774},[764,1666,929],{"class":778},[764,1668,1669],{"class":770},"await",[764,1671,1640],{"class":817},[764,1673,820],{"class":778},[764,1675,866],{"class":774},[764,1677,1250],{"class":791},[764,1679,866],{"class":774},[764,1681,874],{"class":774},[764,1683,788],{"class":774},[764,1685,1686],{"class":791},"utf-8",[764,1688,866],{"class":774},[764,1690,1691],{"class":778},"))",[764,1693,853],{"class":774},[764,1695,1696],{"class":817},"trim",[764,1698,975],{"class":778},[618,1700,1701],{},"Or, for same-origin browser tabs in a Nuxt app, hit the discovery route:",[755,1703,1705],{"className":757,"code":1704,"language":759,"meta":760,"style":760},"const { url } = await fetch('\u002Fapi\u002F_evlog\u002Fstream-info').then(r => r.json())\n",[637,1706,1707],{"__ignoreMap":760},[764,1708,1709,1711,1713,1715,1717,1719,1721,1724,1726,1728,1730,1732,1734,1736,1739,1741,1744,1746,1749,1751,1754],{"class":766,"line":767},[764,1710,808],{"class":807},[764,1712,775],{"class":774},[764,1714,1662],{"class":778},[764,1716,964],{"class":774},[764,1718,1449],{"class":774},[764,1720,1036],{"class":770},[764,1722,1723],{"class":817}," fetch",[764,1725,820],{"class":778},[764,1727,866],{"class":774},[764,1729,1254],{"class":791},[764,1731,866],{"class":774},[764,1733,712],{"class":778},[764,1735,853],{"class":774},[764,1737,1738],{"class":817},"then",[764,1740,820],{"class":778},[764,1742,1743],{"class":911},"r",[764,1745,917],{"class":807},[764,1747,1748],{"class":778}," r",[764,1750,853],{"class":774},[764,1752,1753],{"class":817},"json",[764,1755,1756],{"class":778},"())\n",[1074,1758,1760],{"id":1759},"wire-format","Wire format",[618,1762,1763,1764,830],{},"Every SSE message has the shape ",[637,1765,1766],{},"{ evlog: '1', type, data }",[1078,1768,1769,1786],{},[1081,1770,1771],{},[1084,1772,1773,1778,1781],{},[1087,1774,1775],{},[637,1776,1777],{},"type",[1087,1779,1780],{},"When",[1087,1782,1783],{},[637,1784,1785],{},"data",[1097,1787,1788,1803,1824,1837],{},[1084,1789,1790,1795,1798],{},[1102,1791,1792],{},[637,1793,1794],{},"hello",[1102,1796,1797],{},"First frame after connect",[1102,1799,1800],{},[637,1801,1802],{},"{ evlogVersion, bufferSize, heartbeatMs }",[1084,1804,1805,1810,1819],{},[1102,1806,1807],{},[637,1808,1809],{},"replay",[1102,1811,1812,1813,1815,1816],{},"Right after ",[637,1814,1794],{},", replays buffered events when the consumer passed ",[637,1817,1818],{},"?since=\u003Ciso>",[1102,1820,1821],{},[637,1822,1823],{},"WideEvent",[1084,1825,1826,1830,1833],{},[1102,1827,1828],{},[637,1829,912],{},[1102,1831,1832],{},"Every emitted event after that",[1102,1834,1835],{},[637,1836,1823],{},[1084,1838,1839,1844,1850],{},[1102,1840,1841],{},[637,1842,1843],{},"ping",[1102,1845,1846,1847,712],{},"Heartbeat (default every 15s, configurable via ",[637,1848,1849],{},"heartbeatMs",[1102,1851,1852],{},[637,1853,1854],{},"{ ts: number }",[755,1856,1859],{"className":757,"code":1857,"filename":1858,"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,1860,1861,1905,1923,1927,1950,1986,2017],{"__ignoreMap":760},[764,1862,1863,1865,1867,1869,1871,1873,1875,1877,1879,1881,1883,1885,1887,1889,1891,1893,1895,1897,1899,1901,1903],{"class":766,"line":767},[764,1864,808],{"class":807},[764,1866,775],{"class":774},[764,1868,1662],{"class":778},[764,1870,964],{"class":774},[764,1872,1449],{"class":774},[764,1874,1036],{"class":770},[764,1876,1723],{"class":817},[764,1878,820],{"class":778},[764,1880,866],{"class":774},[764,1882,1254],{"class":791},[764,1884,866],{"class":774},[764,1886,712],{"class":778},[764,1888,853],{"class":774},[764,1890,1738],{"class":817},[764,1892,820],{"class":778},[764,1894,1743],{"class":911},[764,1896,917],{"class":807},[764,1898,1748],{"class":778},[764,1900,853],{"class":774},[764,1902,1753],{"class":817},[764,1904,1756],{"class":778},[764,1906,1907,1909,1912,1914,1917,1920],{"class":766,"line":797},[764,1908,808],{"class":807},[764,1910,1911],{"class":778}," es ",[764,1913,814],{"class":774},[764,1915,1916],{"class":774}," new",[764,1918,1919],{"class":817}," EventSource",[764,1921,1922],{"class":778},"(url)\n",[764,1924,1925],{"class":766,"line":804},[764,1926,801],{"emptyLinePlaceholder":800},[764,1928,1929,1932,1934,1937,1939,1941,1944,1946,1948],{"class":766,"line":842},[764,1930,1931],{"class":778},"es",[764,1933,853],{"class":774},[764,1935,1936],{"class":817},"onmessage",[764,1938,1449],{"class":774},[764,1940,929],{"class":774},[764,1942,1943],{"class":911},"msg",[764,1945,712],{"class":774},[764,1947,917],{"class":807},[764,1949,920],{"class":774},[764,1951,1952,1954,1956,1959,1961,1964,1966,1968,1971,1973,1976,1978,1980,1982,1984],{"class":766,"line":847},[764,1953,1563],{"class":807},[764,1955,775],{"class":774},[764,1957,1958],{"class":778}," type",[764,1960,874],{"class":774},[764,1962,1963],{"class":778}," data",[764,1965,782],{"class":774},[764,1967,1449],{"class":774},[764,1969,1970],{"class":778}," JSON",[764,1972,853],{"class":774},[764,1974,1975],{"class":817},"parse",[764,1977,820],{"class":826},[764,1979,1943],{"class":778},[764,1981,853],{"class":774},[764,1983,1785],{"class":778},[764,1985,839],{"class":826},[764,1987,1988,1990,1992,1994,1996,1998,2000,2002,2004,2006,2008,2011,2013,2015],{"class":766,"line":885},[764,1989,926],{"class":770},[764,1991,929],{"class":826},[764,1993,1777],{"class":778},[764,1995,939],{"class":774},[764,1997,788],{"class":774},[764,1999,912],{"class":791},[764,2001,866],{"class":774},[764,2003,949],{"class":826},[764,2005,1052],{"class":778},[764,2007,853],{"class":774},[764,2009,2010],{"class":817},"push",[764,2012,820],{"class":826},[764,2014,1785],{"class":778},[764,2016,839],{"class":826},[764,2018,2019],{"class":766,"line":890},[764,2020,1028],{"class":774},[1074,2022,2024],{"id":2023},"auth-cors","Auth + CORS",[1078,2026,2027,2036],{},[1081,2028,2029],{},[1084,2030,2031,2033],{},[1087,2032,1089],{},[1087,2034,2035],{},"Behavior",[1097,2037,2038,2051,2073,2090,2103],{},[1084,2039,2040,2045],{},[1102,2041,2042],{},[637,2043,2044],{},"token",[1102,2046,2047,2048,2050],{},"When set, the server requires ",[637,2049,1243],{}," on every request and 401s otherwise.",[1084,2052,2053,2056],{},[1102,2054,2055],{},"(no token)",[1102,2057,2058,2059,2062,2063,2065,2066,2065,2069,2072],{},"Connections are accepted only when there is no ",[637,2060,2061],{},"Origin"," header or the origin host is local (",[637,2064,1288],{}," \u002F ",[637,2067,2068],{},"localhost",[637,2070,2071],{},"[::1]","). Other origins receive 403.",[1084,2074,2075,2080],{},[1102,2076,2077],{},[637,2078,2079],{},"host",[1102,2081,2082,2083,2085,2086,2089],{},"Default ",[637,2084,1288],{}," — never reachable from the LAN. Override to ",[637,2087,2088],{},"0.0.0.0"," only with a token set.",[1084,2091,2092,2096],{},[1102,2093,2094],{},[637,2095,1849],{},[1102,2097,2098,2099,2102],{},"Heartbeat interval (default ",[637,2100,2101],{},"15000",").",[1084,2104,2105,2109],{},[1102,2106,2107],{},[637,2108,736],{},[1102,2110,2111,2112,2114,2115,853],{},"Ring buffer kept on the underlying default stream — replayed for late-joining clients via ",[637,2113,1818],{},". Default ",[637,2116,1124],{},[666,2118,2120],{"id":2119},"going-further","Going further",[627,2122,2123,2128],{},[630,2124,2125,2127],{},[749,2126,513],{"href":514},": replay or tail historic NDJSON files (cross-process, survives restarts)",[630,2129,2130,2133],{},[749,2131,2132],{"href":518},"Consumer recipes",": build a minimal devtool, pipe to curl + jq, replay history then go live",[2135,2136,2137],"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":2139},[2140,2143,2150],{"id":668,"depth":797,"text":634,"children":2141},[2142],{"id":1076,"depth":804,"text":346},{"id":1175,"depth":797,"text":1176,"children":2144},[2145,2146,2147,2148,2149],{"id":1266,"depth":804,"text":1267},{"id":1317,"depth":804,"text":1318},{"id":1603,"depth":804,"text":1604},{"id":1759,"depth":804,"text":1760},{"id":2023,"depth":804,"text":2024},{"id":2119,"depth":797,"text":2120},"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":2151},"FkYaRtI0XInh-HT0tI8fvluYWEYpMK0BvPtqH3aMG4U",[2159,2161],{"title":41,"path":495,"stem":496,"description":2160,"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":2162,"icon":507,"children":-1},"Build evlog support for a framework or runtime that has no integration, with defineFrameworkIntegration or the lower-level helpers.",1789294040346]