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