[{"data":1,"prerenderedAt":2345},["ShallowReactive",2],{"navigation_docs":3,"-core-concepts-performance":454,"-core-concepts-performance-surround":2340},[4,35,159,201,289,352,438],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Getting Started","\u002Fgetting-started","1.getting-started",[9,14,19,24,29],{"title":10,"path":11,"stem":12,"icon":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-info",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Quick Start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start","i-lucide-zap",{"title":25,"path":26,"stem":27,"icon":28},"Agent Skills","\u002Fgetting-started\u002Fagent-skills","1.getting-started\u002F4.agent-skills","i-lucide-sparkles",{"title":30,"path":31,"stem":32,"icon":33},"vs Other Loggers","\u002Fgetting-started\u002Fvs-other-loggers","1.getting-started\u002F5.vs-other-loggers","i-lucide-scale",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Logging","\u002Flogging","2.logging",[40,45,50,55,60,65,70,99,127],{"title":41,"path":42,"stem":43,"icon":44},"Overview","\u002Flogging\u002Foverview","2.logging\u002F0.overview","i-lucide-list",{"title":46,"path":47,"stem":48,"icon":49},"Simple Logging","\u002Flogging\u002Fsimple-logging","2.logging\u002F1.simple-logging","i-lucide-terminal",{"title":51,"path":52,"stem":53,"icon":54},"Wide Events","\u002Flogging\u002Fwide-events","2.logging\u002F2.wide-events","i-lucide-layers",{"title":56,"path":57,"stem":58,"icon":59},"Structured Errors","\u002Flogging\u002Fstructured-errors","2.logging\u002F3.structured-errors","i-lucide-shield-alert",{"title":61,"path":62,"stem":63,"icon":64},"Catalogs","\u002Flogging\u002Fcatalogs","2.logging\u002F4.catalogs","i-lucide-book-open",{"title":66,"path":67,"stem":68,"icon":69},"Client Logging","\u002Flogging\u002Fclient-logging","2.logging\u002F5.client-logging","i-lucide-monitor",{"title":71,"icon":72,"path":73,"stem":74,"children":75,"page":34},"AI SDK","i-simple-icons-vercel","\u002Flogging\u002Fai-sdk","2.logging\u002F6.ai-sdk",[76,79,84,89,94],{"title":41,"path":77,"stem":78,"icon":44},"\u002Flogging\u002Fai-sdk\u002Foverview","2.logging\u002F6.ai-sdk\u002F01.overview",{"title":80,"path":81,"stem":82,"icon":83},"Usage","\u002Flogging\u002Fai-sdk\u002Fusage","2.logging\u002F6.ai-sdk\u002F02.usage","i-lucide-code",{"title":85,"path":86,"stem":87,"icon":88},"Options","\u002Flogging\u002Fai-sdk\u002Foptions","2.logging\u002F6.ai-sdk\u002F03.options","i-lucide-sliders",{"title":90,"path":91,"stem":92,"icon":93},"Metadata","\u002Flogging\u002Fai-sdk\u002Fmetadata","2.logging\u002F6.ai-sdk\u002F04.metadata","i-lucide-database",{"title":95,"path":96,"stem":97,"icon":98},"Telemetry","\u002Flogging\u002Fai-sdk\u002Ftelemetry","2.logging\u002F6.ai-sdk\u002F05.telemetry","i-lucide-activity",{"title":100,"icon":101,"path":102,"stem":103,"children":104,"page":34},"Better Auth","i-simple-icons-betterauth","\u002Flogging\u002Fbetter-auth","2.logging\u002F7.better-auth",[105,108,113,118,122],{"title":41,"path":106,"stem":107,"icon":44},"\u002Flogging\u002Fbetter-auth\u002Foverview","2.logging\u002F7.better-auth\u002F01.overview",{"title":109,"path":110,"stem":111,"icon":112},"Identify User","\u002Flogging\u002Fbetter-auth\u002Fidentify-user","2.logging\u002F7.better-auth\u002F02.identify-user","i-lucide-user-check",{"title":114,"path":115,"stem":116,"icon":117},"Middleware","\u002Flogging\u002Fbetter-auth\u002Fmiddleware","2.logging\u002F7.better-auth\u002F03.middleware","i-lucide-shield",{"title":119,"path":120,"stem":121,"icon":69},"Client Sync","\u002Flogging\u002Fbetter-auth\u002Fclient-sync","2.logging\u002F7.better-auth\u002F04.client-sync",{"title":123,"path":124,"stem":125,"icon":126},"Performance","\u002Flogging\u002Fbetter-auth\u002Fperformance","2.logging\u002F7.better-auth\u002F05.performance","i-lucide-gauge",{"title":128,"icon":129,"path":130,"stem":131,"children":132,"page":34},"Audit Logs","i-lucide-shield-check","\u002Flogging\u002Faudit","2.logging\u002F8.audit",[133,136,141,146,151,155],{"title":41,"path":134,"stem":135,"icon":44},"\u002Flogging\u002Faudit\u002Foverview","2.logging\u002F8.audit\u002F01.overview",{"title":137,"path":138,"stem":139,"icon":140},"Schema","\u002Flogging\u002Faudit\u002Fschema","2.logging\u002F8.audit\u002F02.schema","i-lucide-file-text",{"title":142,"path":143,"stem":144,"icon":145},"Recording","\u002Flogging\u002Faudit\u002Frecording","2.logging\u002F8.audit\u002F03.recording","i-lucide-pen-line",{"title":147,"path":148,"stem":149,"icon":150},"Drains","\u002Flogging\u002Faudit\u002Fpipeline","2.logging\u002F8.audit\u002F04.pipeline","i-lucide-link",{"title":152,"path":153,"stem":154,"icon":129},"Compliance","\u002Flogging\u002Faudit\u002Fcompliance","2.logging\u002F8.audit\u002F05.compliance",{"title":156,"path":157,"stem":158,"icon":64},"Recipes","\u002Flogging\u002Faudit\u002Frecipes","2.logging\u002F8.audit\u002F06.recipes",{"title":160,"path":161,"stem":162,"children":163,"page":34},"Core Concepts","\u002Fcore-concepts","3.core-concepts",[164,169,174,179,184,188,191,196],{"title":165,"path":166,"stem":167,"icon":168},"Lifecycle","\u002Fcore-concepts\u002Flifecycle","3.core-concepts\u002F0.lifecycle","i-lucide-arrow-right-left",{"title":170,"path":171,"stem":172,"icon":173},"Configuration","\u002Fcore-concepts\u002Fconfiguration","3.core-concepts\u002F1.configuration","i-lucide-settings",{"title":175,"path":176,"stem":177,"icon":178},"Sampling","\u002Fcore-concepts\u002Fsampling","3.core-concepts\u002F2.sampling","i-lucide-filter",{"title":180,"path":181,"stem":182,"icon":183},"Typed Fields","\u002Fcore-concepts\u002Ftyped-fields","3.core-concepts\u002F3.typed-fields","i-simple-icons-typescript",{"title":185,"path":186,"stem":187,"icon":129},"Best Practices","\u002Fcore-concepts\u002Fbest-practices","3.core-concepts\u002F4.best-practices",{"title":123,"path":189,"stem":190,"icon":126},"\u002Fcore-concepts\u002Fperformance","3.core-concepts\u002F5.performance",{"title":192,"path":193,"stem":194,"icon":195},"Vite Plugin","\u002Fcore-concepts\u002Fvite-plugin","3.core-concepts\u002F6.vite-plugin","i-custom-vite",{"title":197,"path":198,"stem":199,"icon":200},"Auto-Redaction","\u002Fcore-concepts\u002Fredaction","3.core-concepts\u002F7.redaction","i-lucide-eye-off",{"title":202,"path":203,"stem":204,"children":205,"page":34},"Frameworks","\u002Fframeworks","4.frameworks",[206,210,215,220,225,230,235,240,245,250,255,260,265,270,274,279,284],{"title":41,"path":207,"stem":208,"icon":209},"\u002Fframeworks\u002Foverview","4.frameworks\u002F00.overview","i-lucide-layout-grid",{"title":211,"path":212,"stem":213,"icon":214},"Nuxt","\u002Fframeworks\u002Fnuxt","4.frameworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":216,"path":217,"stem":218,"icon":219},"Next.js","\u002Fframeworks\u002Fnextjs","4.frameworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":221,"path":222,"stem":223,"icon":224},"SvelteKit","\u002Fframeworks\u002Fsveltekit","4.frameworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":226,"path":227,"stem":228,"icon":229},"Nitro","\u002Fframeworks\u002Fnitro","4.frameworks\u002F04.nitro","i-custom-nitro",{"title":231,"path":232,"stem":233,"icon":234},"TanStack Start","\u002Fframeworks\u002Ftanstack-start","4.frameworks\u002F05.tanstack-start","i-custom-tanstack",{"title":236,"path":237,"stem":238,"icon":239},"NestJS","\u002Fframeworks\u002Fnestjs","4.frameworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":241,"path":242,"stem":243,"icon":244},"Express","\u002Fframeworks\u002Fexpress","4.frameworks\u002F07.express","i-simple-icons-express",{"title":246,"path":247,"stem":248,"icon":249},"Hono","\u002Fframeworks\u002Fhono","4.frameworks\u002F08.hono","i-simple-icons-hono",{"title":251,"path":252,"stem":253,"icon":254},"Fastify","\u002Fframeworks\u002Ffastify","4.frameworks\u002F09.fastify","i-simple-icons-fastify",{"title":256,"path":257,"stem":258,"icon":259},"Elysia","\u002Fframeworks\u002Felysia","4.frameworks\u002F10.elysia","i-custom-elysia",{"title":261,"path":262,"stem":263,"icon":264},"React Router","\u002Fframeworks\u002Freact-router","4.frameworks\u002F11.react-router","i-custom-reactrouter",{"title":266,"path":267,"stem":268,"icon":269},"Cloudflare Workers","\u002Fframeworks\u002Fcloudflare-workers","4.frameworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":271,"path":272,"stem":273,"icon":183},"Standalone","\u002Fframeworks\u002Fstandalone","4.frameworks\u002F13.standalone",{"title":275,"path":276,"stem":277,"icon":278},"Astro","\u002Fframeworks\u002Fastro","4.frameworks\u002F14.astro","i-simple-icons-astro",{"title":280,"path":281,"stem":282,"icon":283},"AWS Lambda","\u002Fframeworks\u002Faws-lambda","4.frameworks\u002F16.aws-lambda","i-custom-lambda",{"title":285,"path":286,"stem":287,"icon":288},"Custom Integration","\u002Fframeworks\u002Fcustom-integration","4.frameworks\u002F17.custom-integration","i-lucide-puzzle",{"title":290,"path":291,"stem":292,"children":293,"page":34},"Build on top","\u002Fbuild-on-top","5.build-on-top",[294,297,302,307,312,316,321,326,330,334,338,342,347],{"title":41,"path":295,"stem":296,"icon":54},"\u002Fbuild-on-top\u002Foverview","5.build-on-top\u002F0.overview",{"title":298,"path":299,"stem":300,"icon":301},"In-process stream","\u002Fbuild-on-top\u002Fin-process-stream","5.build-on-top\u002F1.in-process-stream","i-lucide-radio-tower",{"title":303,"path":304,"stem":305,"icon":306},"Fanout","\u002Fbuild-on-top\u002Ffanout-and-multi-drain","5.build-on-top\u002F10.fanout-and-multi-drain","i-lucide-share-2",{"title":308,"path":309,"stem":310,"icon":311},"Identity headers","\u002Fbuild-on-top\u002Fidentity-headers","5.build-on-top\u002F11.identity-headers","i-lucide-fingerprint",{"title":313,"path":314,"stem":315,"icon":288},"Custom framework","\u002Fbuild-on-top\u002Fcustom-framework","5.build-on-top\u002F12.custom-framework",{"title":317,"path":318,"stem":319,"icon":320},"Stream server","\u002Fbuild-on-top\u002Fstream-server","5.build-on-top\u002F2.stream-server","i-lucide-radio",{"title":322,"path":323,"stem":324,"icon":325},"FS reader","\u002Fbuild-on-top\u002Ffs-reader","5.build-on-top\u002F3.fs-reader","i-lucide-folder-search",{"title":156,"path":327,"stem":328,"icon":329},"\u002Fbuild-on-top\u002Fconsumer-recipes","5.build-on-top\u002F4.consumer-recipes","i-lucide-chef-hat",{"title":331,"path":332,"stem":333,"icon":288},"Plugins","\u002Fbuild-on-top\u002Fplugins","5.build-on-top\u002F5.plugins",{"title":335,"path":336,"stem":337,"icon":28},"Custom enrichers","\u002Fbuild-on-top\u002Fcustom-enrichers","5.build-on-top\u002F6.custom-enrichers",{"title":339,"path":340,"stem":341,"icon":178},"Tail sampling","\u002Fbuild-on-top\u002Ftail-sampling","5.build-on-top\u002F7.tail-sampling",{"title":343,"path":344,"stem":345,"icon":346},"Custom drains","\u002Fbuild-on-top\u002Fcustom-drains","5.build-on-top\u002F8.custom-drains","i-lucide-code-2",{"title":348,"path":349,"stem":350,"icon":351},"Drain pipeline","\u002Fbuild-on-top\u002Fdrain-pipeline","5.build-on-top\u002F9.drain-pipeline","i-lucide-workflow",{"title":353,"path":354,"stem":355,"children":356,"page":34},"Adapters","\u002Fadapters","6.adapters",[357,360,400,415],{"title":41,"path":358,"stem":359,"icon":44},"\u002Fadapters\u002Foverview","6.adapters\u002F01.overview",{"title":361,"path":362,"stem":363,"children":364,"page":34},"Cloud destinations","\u002Fadapters\u002Fcloud","6.adapters\u002F02.cloud",[365,370,375,380,385,390,395],{"title":366,"path":367,"stem":368,"icon":369},"Axiom","\u002Fadapters\u002Fcloud\u002Faxiom","6.adapters\u002F02.cloud\u002F01.axiom","i-custom-axiom",{"title":371,"path":372,"stem":373,"icon":374},"OTLP","\u002Fadapters\u002Fcloud\u002Fotlp","6.adapters\u002F02.cloud\u002F02.otlp","i-simple-icons-opentelemetry",{"title":376,"path":377,"stem":378,"icon":379},"PostHog","\u002Fadapters\u002Fcloud\u002Fposthog","6.adapters\u002F02.cloud\u002F03.posthog","i-simple-icons-posthog",{"title":381,"path":382,"stem":383,"icon":384},"Sentry","\u002Fadapters\u002Fcloud\u002Fsentry","6.adapters\u002F02.cloud\u002F04.sentry","i-simple-icons-sentry",{"title":386,"path":387,"stem":388,"icon":389},"Better Stack","\u002Fadapters\u002Fcloud\u002Fbetter-stack","6.adapters\u002F02.cloud\u002F05.better-stack","i-simple-icons-betterstack",{"title":391,"path":392,"stem":393,"icon":394},"Datadog","\u002Fadapters\u002Fcloud\u002Fdatadog","6.adapters\u002F02.cloud\u002F06.datadog","i-simple-icons-datadog",{"title":396,"path":397,"stem":398,"icon":399},"HyperDX","\u002Fadapters\u002Fcloud\u002Fhyperdx","6.adapters\u002F02.cloud\u002F07.hyperdx","i-custom-hyperdx",{"title":401,"path":402,"stem":403,"children":404,"page":34},"Self-hosted","\u002Fadapters\u002Fself-hosted","6.adapters\u002F03.self-hosted",[405,410],{"title":406,"path":407,"stem":408,"icon":409},"File System","\u002Fadapters\u002Fself-hosted\u002Ffs","6.adapters\u002F03.self-hosted\u002F01.fs","i-lucide-hard-drive",{"title":411,"path":412,"stem":413,"icon":414},"NuxtHub","\u002Fadapters\u002Fself-hosted\u002Fnuxthub","6.adapters\u002F03.self-hosted\u002F02.nuxthub","i-simple-icons-nuxt",{"title":416,"path":417,"stem":418,"children":419,"page":34},"Building blocks","\u002Fadapters\u002Fbuilding-blocks","6.adapters\u002F04.building-blocks",[420,424,429,433],{"title":421,"path":422,"stem":423,"icon":351},"Pipeline","\u002Fadapters\u002Fbuilding-blocks\u002Fpipeline","6.adapters\u002F04.building-blocks\u002F01.pipeline",{"title":425,"path":426,"stem":427,"icon":428},"HTTP","\u002Fadapters\u002Fbuilding-blocks\u002Fhttp","6.adapters\u002F04.building-blocks\u002F02.http","i-lucide-globe",{"title":430,"path":431,"stem":432,"icon":83},"Custom Adapters","\u002Fadapters\u002Fbuilding-blocks\u002Fcustom","6.adapters\u002F04.building-blocks\u002F03.custom",{"title":434,"path":435,"stem":436,"icon":437},"Toolkit","\u002Fadapters\u002Fbuilding-blocks\u002Ftoolkit","6.adapters\u002F04.building-blocks\u002F04.toolkit","i-lucide-blocks",{"title":439,"path":440,"stem":441,"children":442,"page":34},"Enrichers","\u002Fenrichers","7.enrichers",[443,446,450],{"title":41,"path":444,"stem":445,"icon":28},"\u002Fenrichers\u002Foverview","7.enrichers\u002F1.overview",{"title":447,"path":448,"stem":449,"icon":288},"Built-in","\u002Fenrichers\u002Fbuilt-in","7.enrichers\u002F2.built-in",{"title":451,"path":452,"stem":453,"icon":83},"Custom","\u002Fenrichers\u002Fcustom","7.enrichers\u002F3.custom",{"id":455,"title":123,"body":456,"description":2329,"extension":2330,"links":2331,"meta":2336,"navigation":2337,"path":189,"seo":2338,"stem":190,"__hash__":2339},"docs\u002F3.core-concepts\u002F5.performance.md",{"type":457,"value":458,"toc":2302},"minimark",[459,476,481,489,494,497,661,680,693,697,700,1215,1218,1222,1225,1243,1257,1267,1273,1279,1282,1285,1309,1319,1341,1351,1358,1362,1365,1435,1441,1445,1448,1548,1585,1589,1592,1675,1681,1738,1745,1801,1813,1817,1865,1868,1903,1905,1980,1984,2034,2038,2128,2132,2136,2155,2158,2197,2201,2204,2223,2227,2298],[460,461,462,463,467,468,475],"p",{},"evlog adds ",[464,465,466],"strong",{},"~3µs of overhead per request",", that's 0.003ms, orders of magnitude below any HTTP framework or database call. Performance is tracked on every pull request via ",[469,470,474],"a",{"href":471,"rel":472},"https:\u002F\u002Fcodspeed.io",[473],"nofollow","CodSpeed",".",[477,478,480],"h2",{"id":479},"evlog-vs-alternatives","evlog vs alternatives",[460,482,483,484,488],{},"All benchmarks run with JSON output to no-op destinations. pino writes to ",[485,486,487],"code",{},"\u002Fdev\u002Fnull"," (sync), winston writes to a no-op stream, consola uses a no-op reporter, evlog uses silent mode.",[490,491,493],"h3",{"id":492},"results","Results",[495,496],"bench-bar-race",{},[498,499,500,523],"table",{},[501,502,503],"thead",{},[504,505,506,510,514,517,520],"tr",{},[507,508,509],"th",{},"Scenario",[507,511,513],{"align":512},"right","evlog",[507,515,516],{"align":512},"pino",[507,518,519],{"align":512},"consola",[507,521,522],{"align":512},"winston",[524,525,526,546,565,585,604,623,642],"tbody",{},[504,527,528,532,535,538,543],{},[529,530,531],"td",{},"Simple string log",[529,533,534],{"align":512},"1.83M ops\u002Fs",[529,536,537],{"align":512},"1.09M",[529,539,540],{"align":512},[464,541,542],{},"2.79M",[529,544,545],{"align":512},"1.20M",[504,547,548,551,554,557,562],{},[529,549,550],{},"Structured (5 fields)",[529,552,553],{"align":512},"1.64M ops\u002Fs",[529,555,556],{"align":512},"716.1K",[529,558,559],{"align":512},[464,560,561],{},"1.71M",[529,563,564],{"align":512},"431.6K",[504,566,567,570,576,579,582],{},[529,568,569],{},"Deep nested log",[529,571,572,575],{"align":512},[464,573,574],{},"1.55M"," ops\u002Fs",[529,577,578],{"align":512},"464.9K",[529,580,581],{"align":512},"1.01M",[529,583,584],{"align":512},"164.0K",[504,586,587,590,595,598,601],{},[529,588,589],{},"Child \u002F scoped logger",[529,591,592,575],{"align":512},[464,593,594],{},"1.70M",[529,596,597],{"align":512},"845.0K",[529,599,600],{"align":512},"280.4K",[529,602,603],{"align":512},"430.0K",[504,605,606,609,614,617,620],{},[529,607,608],{},"Wide event lifecycle",[529,610,611,575],{"align":512},[464,612,613],{},"1.58M",[529,615,616],{"align":512},"205.8K",[529,618,619],{"align":512},"—",[529,621,622],{"align":512},"111.9K",[504,624,625,628,631,634,639],{},[529,626,627],{},"Burst (100 logs)",[529,629,630],{"align":512},"17.8K ops\u002Fs",[529,632,633],{"align":512},"10.3K",[529,635,636],{"align":512},[464,637,638],{},"39.4K",[529,640,641],{"align":512},"7.5K",[504,643,644,647,652,655,658],{},[529,645,646],{},"Logger creation",[529,648,649,575],{"align":512},[464,650,651],{},"16.85M",[529,653,654],{"align":512},"7.50M",[529,656,657],{"align":512},"310.3K",[529,659,660],{"align":512},"5.38M",[460,662,663,664,667,668,671,672,675,676,679],{},"evlog wins ",[464,665,666],{},"4 out of 7"," head-to-head comparisons, and the wins that matter most are decisive: ",[464,669,670],{},"7.7x faster"," than pino in the wide event pattern, ",[464,673,674],{},"2.3x faster"," logger creation, and ",[464,677,678],{},"3.3x faster"," deep nested logging. consola edges ahead on simple strings and burst (it uses a no-op reporter with no serialization), but evlog produces a single correlated event per request where traditional loggers emit N separate lines.",[681,682,684,687,688,692],"callout",{"color":683,"icon":13},"info",[464,685,686],{},"Why this matters",": in the wide event pattern (one event per request, the real-world API shape), evlog is 7.7x faster than pino and 14.1x faster than winston while sending 75% less data to your log drain and giving you one queryable event instead of 4 disconnected lines. The 7.7x is not a brute-force win — pino doesn't try to accumulate context, so the comparison reflects an architectural difference, not a fairness issue. See ",[469,689,691],{"href":690},"#when-evlog-might-not-win","When evlog might not win"," for the honest gaps.",[490,694,696],{"id":695},"what-is-the-wide-event-lifecycle","What is the \"wide event lifecycle\"?",[460,698,699],{},"This benchmark simulates a real API request:",[701,702,703,969],"code-group",{},[704,705,711],"pre",{"className":706,"code":707,"filename":708,"language":709,"meta":710,"style":710},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const log = createLogger({ method: 'POST', path: '\u002Fapi\u002Fcheckout', requestId: 'req_abc' })\nlog.set({ user: { id: 'usr_123', plan: 'pro' } })\nlog.set({ cart: { items: 3, total: 9999 } })\nlog.set({ payment: { method: 'card', last4: '4242' } })\nlog.emit({ status: 200 })\n","evlog (1 event)","typescript","",[485,712,713,792,847,892,943],{"__ignoreMap":710},[714,715,718,722,726,730,734,737,740,744,747,750,754,757,760,763,765,767,770,772,774,777,779,781,784,786,789],"span",{"class":716,"line":717},"line",1,[714,719,721],{"class":720},"spNyl","const",[714,723,725],{"class":724},"sTEyZ"," log ",[714,727,729],{"class":728},"sMK4o","=",[714,731,733],{"class":732},"s2Zo4"," createLogger",[714,735,736],{"class":724},"(",[714,738,739],{"class":728},"{",[714,741,743],{"class":742},"swJcz"," method",[714,745,746],{"class":728},":",[714,748,749],{"class":728}," '",[714,751,753],{"class":752},"sfazB","POST",[714,755,756],{"class":728},"'",[714,758,759],{"class":728},",",[714,761,762],{"class":742}," path",[714,764,746],{"class":728},[714,766,749],{"class":728},[714,768,769],{"class":752},"\u002Fapi\u002Fcheckout",[714,771,756],{"class":728},[714,773,759],{"class":728},[714,775,776],{"class":742}," requestId",[714,778,746],{"class":728},[714,780,749],{"class":728},[714,782,783],{"class":752},"req_abc",[714,785,756],{"class":728},[714,787,788],{"class":728}," }",[714,790,791],{"class":724},")\n",[714,793,795,798,800,803,805,807,810,812,815,818,820,822,825,827,829,832,834,836,839,841,843,845],{"class":716,"line":794},2,[714,796,797],{"class":724},"log",[714,799,475],{"class":728},[714,801,802],{"class":732},"set",[714,804,736],{"class":724},[714,806,739],{"class":728},[714,808,809],{"class":742}," user",[714,811,746],{"class":728},[714,813,814],{"class":728}," {",[714,816,817],{"class":742}," id",[714,819,746],{"class":728},[714,821,749],{"class":728},[714,823,824],{"class":752},"usr_123",[714,826,756],{"class":728},[714,828,759],{"class":728},[714,830,831],{"class":742}," plan",[714,833,746],{"class":728},[714,835,749],{"class":728},[714,837,838],{"class":752},"pro",[714,840,756],{"class":728},[714,842,788],{"class":728},[714,844,788],{"class":728},[714,846,791],{"class":724},[714,848,850,852,854,856,858,860,863,865,867,870,872,876,878,881,883,886,888,890],{"class":716,"line":849},3,[714,851,797],{"class":724},[714,853,475],{"class":728},[714,855,802],{"class":732},[714,857,736],{"class":724},[714,859,739],{"class":728},[714,861,862],{"class":742}," cart",[714,864,746],{"class":728},[714,866,814],{"class":728},[714,868,869],{"class":742}," items",[714,871,746],{"class":728},[714,873,875],{"class":874},"sbssI"," 3",[714,877,759],{"class":728},[714,879,880],{"class":742}," total",[714,882,746],{"class":728},[714,884,885],{"class":874}," 9999",[714,887,788],{"class":728},[714,889,788],{"class":728},[714,891,791],{"class":724},[714,893,895,897,899,901,903,905,908,910,912,914,916,918,921,923,925,928,930,932,935,937,939,941],{"class":716,"line":894},4,[714,896,797],{"class":724},[714,898,475],{"class":728},[714,900,802],{"class":732},[714,902,736],{"class":724},[714,904,739],{"class":728},[714,906,907],{"class":742}," payment",[714,909,746],{"class":728},[714,911,814],{"class":728},[714,913,743],{"class":742},[714,915,746],{"class":728},[714,917,749],{"class":728},[714,919,920],{"class":752},"card",[714,922,756],{"class":728},[714,924,759],{"class":728},[714,926,927],{"class":742}," last4",[714,929,746],{"class":728},[714,931,749],{"class":728},[714,933,934],{"class":752},"4242",[714,936,756],{"class":728},[714,938,788],{"class":728},[714,940,788],{"class":728},[714,942,791],{"class":724},[714,944,946,948,950,953,955,957,960,962,965,967],{"class":716,"line":945},5,[714,947,797],{"class":724},[714,949,475],{"class":728},[714,951,952],{"class":732},"emit",[714,954,736],{"class":724},[714,956,739],{"class":728},[714,958,959],{"class":742}," status",[714,961,746],{"class":728},[714,963,964],{"class":874}," 200",[714,966,788],{"class":728},[714,968,791],{"class":724},[704,970,973],{"className":706,"code":971,"filename":972,"language":709,"meta":710,"style":710},"const child = pinoLogger.child({ method: 'POST', path: '\u002Fapi\u002Fcheckout', requestId: 'req_abc' })\nchild.info({ user: { id: 'usr_123', plan: 'pro' } }, 'user context')\nchild.info({ cart: { items: 3, total: 9999 } }, 'cart context')\nchild.info({ payment: { method: 'card', last4: '4242' } }, 'payment context')\nchild.info({ status: 200 }, 'request complete')\n","pino (4 log lines)",[485,974,975,1034,1088,1133,1186],{"__ignoreMap":710},[714,976,977,979,982,984,987,989,992,994,996,998,1000,1002,1004,1006,1008,1010,1012,1014,1016,1018,1020,1022,1024,1026,1028,1030,1032],{"class":716,"line":717},[714,978,721],{"class":720},[714,980,981],{"class":724}," child ",[714,983,729],{"class":728},[714,985,986],{"class":724}," pinoLogger",[714,988,475],{"class":728},[714,990,991],{"class":732},"child",[714,993,736],{"class":724},[714,995,739],{"class":728},[714,997,743],{"class":742},[714,999,746],{"class":728},[714,1001,749],{"class":728},[714,1003,753],{"class":752},[714,1005,756],{"class":728},[714,1007,759],{"class":728},[714,1009,762],{"class":742},[714,1011,746],{"class":728},[714,1013,749],{"class":728},[714,1015,769],{"class":752},[714,1017,756],{"class":728},[714,1019,759],{"class":728},[714,1021,776],{"class":742},[714,1023,746],{"class":728},[714,1025,749],{"class":728},[714,1027,783],{"class":752},[714,1029,756],{"class":728},[714,1031,788],{"class":728},[714,1033,791],{"class":724},[714,1035,1036,1038,1040,1042,1044,1046,1048,1050,1052,1054,1056,1058,1060,1062,1064,1066,1068,1070,1072,1074,1076,1079,1081,1084,1086],{"class":716,"line":794},[714,1037,991],{"class":724},[714,1039,475],{"class":728},[714,1041,683],{"class":732},[714,1043,736],{"class":724},[714,1045,739],{"class":728},[714,1047,809],{"class":742},[714,1049,746],{"class":728},[714,1051,814],{"class":728},[714,1053,817],{"class":742},[714,1055,746],{"class":728},[714,1057,749],{"class":728},[714,1059,824],{"class":752},[714,1061,756],{"class":728},[714,1063,759],{"class":728},[714,1065,831],{"class":742},[714,1067,746],{"class":728},[714,1069,749],{"class":728},[714,1071,838],{"class":752},[714,1073,756],{"class":728},[714,1075,788],{"class":728},[714,1077,1078],{"class":728}," },",[714,1080,749],{"class":728},[714,1082,1083],{"class":752},"user context",[714,1085,756],{"class":728},[714,1087,791],{"class":724},[714,1089,1090,1092,1094,1096,1098,1100,1102,1104,1106,1108,1110,1112,1114,1116,1118,1120,1122,1124,1126,1129,1131],{"class":716,"line":849},[714,1091,991],{"class":724},[714,1093,475],{"class":728},[714,1095,683],{"class":732},[714,1097,736],{"class":724},[714,1099,739],{"class":728},[714,1101,862],{"class":742},[714,1103,746],{"class":728},[714,1105,814],{"class":728},[714,1107,869],{"class":742},[714,1109,746],{"class":728},[714,1111,875],{"class":874},[714,1113,759],{"class":728},[714,1115,880],{"class":742},[714,1117,746],{"class":728},[714,1119,885],{"class":874},[714,1121,788],{"class":728},[714,1123,1078],{"class":728},[714,1125,749],{"class":728},[714,1127,1128],{"class":752},"cart context",[714,1130,756],{"class":728},[714,1132,791],{"class":724},[714,1134,1135,1137,1139,1141,1143,1145,1147,1149,1151,1153,1155,1157,1159,1161,1163,1165,1167,1169,1171,1173,1175,1177,1179,1182,1184],{"class":716,"line":894},[714,1136,991],{"class":724},[714,1138,475],{"class":728},[714,1140,683],{"class":732},[714,1142,736],{"class":724},[714,1144,739],{"class":728},[714,1146,907],{"class":742},[714,1148,746],{"class":728},[714,1150,814],{"class":728},[714,1152,743],{"class":742},[714,1154,746],{"class":728},[714,1156,749],{"class":728},[714,1158,920],{"class":752},[714,1160,756],{"class":728},[714,1162,759],{"class":728},[714,1164,927],{"class":742},[714,1166,746],{"class":728},[714,1168,749],{"class":728},[714,1170,934],{"class":752},[714,1172,756],{"class":728},[714,1174,788],{"class":728},[714,1176,1078],{"class":728},[714,1178,749],{"class":728},[714,1180,1181],{"class":752},"payment context",[714,1183,756],{"class":728},[714,1185,791],{"class":724},[714,1187,1188,1190,1192,1194,1196,1198,1200,1202,1204,1206,1208,1211,1213],{"class":716,"line":945},[714,1189,991],{"class":724},[714,1191,475],{"class":728},[714,1193,683],{"class":732},[714,1195,736],{"class":724},[714,1197,739],{"class":728},[714,1199,959],{"class":742},[714,1201,746],{"class":728},[714,1203,964],{"class":874},[714,1205,1078],{"class":728},[714,1207,749],{"class":728},[714,1209,1210],{"class":752},"request complete",[714,1212,756],{"class":728},[714,1214,791],{"class":724},[460,1216,1217],{},"Same CPU cost, but evlog gives you everything in one place.",[477,1219,1221],{"id":1220},"why-is-evlog-faster","Why is evlog faster?",[460,1223,1224],{},"The numbers above aren't magic, they come from deliberate architectural choices:",[460,1226,1227,1230,1231,1234,1235,1238,1239,1242],{},[464,1228,1229],{},"In-place mutations, not copies."," ",[485,1232,1233],{},"log.set()"," writes directly into the context object via a recursive ",[485,1236,1237],{},"mergeInto"," function. Other loggers clone objects on every call (object spread, ",[485,1240,1241],{},"Object.assign","). evlog never allocates intermediate objects during context accumulation.",[460,1244,1245,1248,1249,1252,1253,1256],{},[464,1246,1247],{},"No serialization until drain."," Context stays as plain JavaScript objects throughout the request lifecycle. ",[485,1250,1251],{},"JSON.stringify"," runs exactly once, at emit time. Traditional loggers serialize on every ",[485,1254,1255],{},".info()"," call, that's 4x serialization for 4 log lines.",[460,1258,1259,1262,1263,1266],{},[464,1260,1261],{},"Lazy allocation."," Timestamps, sampling context, and override objects are only created when actually needed. If tail sampling is disabled (the common case), its context object is never allocated. The ",[485,1264,1265],{},"Date"," instance used for ISO timestamps is reused across calls.",[460,1268,1269,1272],{},[464,1270,1271],{},"One event, not N lines."," For a typical request, pino emits 4+ JSON lines that all need serializing, transporting, and indexing. evlog emits one. That's 75% less work for your log drain, fewer bytes on the wire, and one row to query instead of four.",[460,1274,1275,1278],{},[464,1276,1277],{},"RegExp caching."," Glob patterns (used in sampling and route matching) are compiled once and cached. Repeated evaluations hit the cache instead of recompiling.",[477,1280,691],{"id":1281},"when-evlog-might-not-win",[460,1283,1284],{},"The benchmarks above measure CPU + serialization cost on the main thread, with no real I\u002FO. That's the standard setup pino, winston, and logtape use for their own benchmarks — but it leaves out a few scenarios where another logger can edge ahead. Be honest about these:",[460,1286,1287,1290,1291,1296,1297,1300,1301,1304,1305,1308],{},[464,1288,1289],{},"Fire-and-forget hot paths with pino-via-worker-thread."," In production, pino is typically configured with a ",[469,1292,1295],{"href":1293,"rel":1294},"https:\u002F\u002Fgetpino.io\u002F#\u002Fdocs\u002Ftransports",[473],"worker-thread transport"," (",[485,1298,1299],{},"pino-pretty",", ",[485,1302,1303],{},"pino-loki",", vendor-specific transports). The serialization and I\u002FO move off the main thread entirely. For a workload that emits hundreds of thousands of ",[485,1306,1307],{},"log.info('foo')"," lines per second with no context accumulation, pino-via-worker can hit ~2-3M ops\u002Fs on the main thread because it's just queueing. We can't benchmark that mode fairly inside a single-threaded vitest process, so it's not in our table — but it's a real scenario where pino is faster.",[460,1310,1311,1314,1315,1318],{},[464,1312,1313],{},"CLI \u002F pretty-only output without serialization."," consola's no-op reporter mode in our benchmarks (",[485,1316,1317],{},"level: 4, reporters: [{ log: () => {} }]",") skips JSON serialization entirely. That's realistic if you're using consola for a CLI with terminal-only output, but it's why consola wins \"simple string\" and \"burst\" — it's not doing the same work. evlog and pino both serialize to JSON; consola in those benchmarks does not. If your use case is \"pretty terminal output, no shipping logs anywhere\", consola is genuinely lighter.",[460,1320,1321,1328,1329,1332,1333,1336,1337,1340],{},[464,1322,1323,1324,1327],{},"Single ",[485,1325,1326],{},"log.info"," calls, no context accumulation."," evlog and pino are roughly tied on ",[485,1330,1331],{},"pino.info('hello')"," vs ",[485,1334,1335],{},"evlog.info('hello')"," (1.83M vs 1.09M ops\u002Fs in our run, but the gap closes further if pino runs in async mode). evlog's ~7.7x advantage shows up specifically when you'd otherwise emit N separate lines for one logical operation. If you genuinely log one line per call and don't accumulate, the speed delta is much smaller — pick evlog for the API ergonomics (",[485,1338,1339],{},"log.set"," + structured errors), not raw throughput.",[460,1342,1343,1346,1347,1350],{},[464,1344,1345],{},"Wall-clock variance is real."," Vitest bench numbers shift ±5-10% between runs on the same machine (thermal throttling, GC, other processes). The numbers above come from a single run on a MacBook; CI tracks regressions via ",[469,1348,474],{"href":471,"rel":1349},[473],"'s CPU-instruction counting (deterministic, ±0.5% noise floor) but the absolute hz values in this page are the wall-clock snapshot, not a guaranteed floor.",[460,1352,1353,1354,1357],{},"The takeaway: ",[464,1355,1356],{},"the wins are real for the wide event pattern",", but if your stack is \"pure fire-and-forget pino with a worker transport\", that's the one place we don't claim to beat.",[477,1359,1361],{"id":1360},"real-world-overhead","Real-world overhead",[460,1363,1364],{},"For a typical API request:",[498,1366,1367,1377],{},[501,1368,1369],{},[504,1370,1371,1374],{},[507,1372,1373],{},"Component",[507,1375,1376],{"align":512},"Cost",[524,1378,1379,1386,1398,1408,1415,1423],{},[504,1380,1381,1383],{},[529,1382,646],{},[529,1384,1385],{"align":512},"52ns",[504,1387,1388,1395],{},[529,1389,1390,1391,1394],{},"3x ",[485,1392,1393],{},"set()"," calls",[529,1396,1397],{"align":512},"105ns",[504,1399,1400,1405],{},[529,1401,1402],{},[485,1403,1404],{},"emit()",[529,1406,1407],{"align":512},"588ns",[504,1409,1410,1412],{},[529,1411,175],{},[529,1413,1414],{"align":512},"22ns",[504,1416,1417,1420],{},[529,1418,1419],{},"Enricher pipeline",[529,1421,1422],{"align":512},"2.14µs",[504,1424,1425,1430],{},[529,1426,1427],{},[464,1428,1429],{},"Total",[529,1431,1432],{"align":512},[464,1433,1434],{},"~2.9µs",[460,1436,1437,1438,475],{},"For context, a database query takes 1-50ms, an HTTP call takes 10-500ms. evlog's overhead is ",[464,1439,1440],{},"invisible",[477,1442,1444],{"id":1443},"bundle-size","Bundle size",[460,1446,1447],{},"Every entry point is tree-shakeable. You only pay for what you import.",[498,1449,1450,1460],{},[501,1451,1452],{},[504,1453,1454,1457],{},[507,1455,1456],{},"Entry",[507,1458,1459],{"align":512},"Gzip",[524,1461,1462,1473,1484,1492,1500,1508,1516,1524,1532,1540],{},[504,1463,1464,1470],{},[529,1465,1466,1467,1469],{},"core (",[485,1468,513],{},")",[529,1471,1472],{"align":512},"510 B",[504,1474,1475,1481],{},[529,1476,1477,1478,1469],{},"toolkit (",[485,1479,1480],{},"evlog\u002Ftoolkit",[529,1482,1483],{"align":512},"720 B",[504,1485,1486,1489],{},[529,1487,1488],{},"utils",[529,1490,1491],{"align":512},"1.58 kB",[504,1493,1494,1497],{},[529,1495,1496],{},"error",[529,1498,1499],{"align":512},"1.46 kB",[504,1501,1502,1505],{},[529,1503,1504],{},"enrichers",[529,1506,1507],{"align":512},"1.99 kB",[504,1509,1510,1513],{},[529,1511,1512],{},"pipeline",[529,1514,1515],{"align":512},"1.35 kB",[504,1517,1518,1521],{},[529,1519,1520],{},"http",[529,1522,1523],{"align":512},"1.22 kB",[504,1525,1526,1529],{},[529,1527,1528],{},"browser",[529,1530,1531],{"align":512},"289 B",[504,1533,1534,1537],{},[529,1535,1536],{},"workers",[529,1538,1539],{"align":512},"1.30 kB",[504,1541,1542,1545],{},[529,1543,1544],{},"client",[529,1546,1547],{"align":512},"128 B",[460,1549,1550,1551,1554,1555,1558,1559,1562,1563,1300,1566,1300,1569,1572,1573,1576,1577,1580,1581,1584],{},"A typical Node.js bundle (",[485,1552,1553],{},"initLogger"," + ",[485,1556,1557],{},"createLogger",") measures ",[464,1560,1561],{},"~6.3 kB gzip"," end-to-end after tree-shaking; adding ",[485,1564,1565],{},"createRequestLogger",[485,1567,1568],{},"createError",[485,1570,1571],{},"parseError",", and ",[485,1574,1575],{},"useLogger"," brings the bundle to ",[464,1578,1579],{},"~7.2 kB gzip",". Adapters and framework integrations sit on top: Hono is 617 B, Express 734 B, Axiom 1.48 kB. Bundle size is tracked on every PR and compared against the ",[485,1582,1583],{},"main"," baseline.",[477,1586,1588],{"id":1587},"detailed-benchmarks","Detailed benchmarks",[490,1590,646],{"id":1591},"logger-creation",[498,1593,1594,1607],{},[501,1595,1596],{},[504,1597,1598,1601,1604],{},[507,1599,1600],{},"Operation",[507,1602,1603],{"align":512},"ops\u002Fsec",[507,1605,1606],{"align":512},"Mean",[524,1608,1609,1622,1635,1648,1662],{},[504,1610,1611,1617,1620],{},[529,1612,1613,1616],{},[485,1614,1615],{},"createLogger()"," (no context)",[529,1618,1619],{"align":512},"19.20M",[529,1621,1385],{"align":512},[504,1623,1624,1629,1632],{},[529,1625,1626,1628],{},[485,1627,1615],{}," (shallow context)",[529,1630,1631],{"align":512},"18.74M",[529,1633,1634],{"align":512},"53ns",[504,1636,1637,1642,1645],{},[529,1638,1639,1641],{},[485,1640,1615],{}," (nested context)",[529,1643,1644],{"align":512},"17.70M",[529,1646,1647],{"align":512},"56ns",[504,1649,1650,1656,1659],{},[529,1651,1652,1655],{},[485,1653,1654],{},"createRequestLogger()"," (method + path)",[529,1657,1658],{"align":512},"16.91M",[529,1660,1661],{"align":512},"59ns",[504,1663,1664,1669,1672],{},[529,1665,1666,1668],{},[485,1667,1654],{}," (method + path + requestId)",[529,1670,1671],{"align":512},"12.67M",[529,1673,1674],{"align":512},"79ns",[490,1676,1678,1679,1469],{"id":1677},"context-accumulation-logset","Context accumulation (",[485,1680,1233],{},[498,1682,1683,1693],{},[501,1684,1685],{},[504,1686,1687,1689,1691],{},[507,1688,1600],{},[507,1690,1603],{"align":512},[507,1692,1606],{"align":512},[524,1694,1695,1705,1716,1727],{},[504,1696,1697,1700,1703],{},[529,1698,1699],{},"Shallow merge (3 fields)",[529,1701,1702],{"align":512},"9.56M",[529,1704,1397],{"align":512},[504,1706,1707,1710,1713],{},[529,1708,1709],{},"Shallow merge (10 fields)",[529,1711,1712],{"align":512},"4.79M",[529,1714,1715],{"align":512},"209ns",[504,1717,1718,1721,1724],{},[529,1719,1720],{},"Deep nested merge",[529,1722,1723],{"align":512},"8.04M",[529,1725,1726],{"align":512},"124ns",[504,1728,1729,1732,1735],{},[529,1730,1731],{},"4 sequential calls",[529,1733,1734],{"align":512},"7.05M",[529,1736,1737],{"align":512},"142ns",[490,1739,1741,1742,1469],{"id":1740},"event-emission-logemit","Event emission (",[485,1743,1744],{},"log.emit()",[498,1746,1747,1757],{},[501,1748,1749],{},[504,1750,1751,1753,1755],{},[507,1752,1600],{},[507,1754,1603],{"align":512},[507,1756,1606],{"align":512},[524,1758,1759,1770,1779,1790],{},[504,1760,1761,1764,1767],{},[529,1762,1763],{},"Emit minimal event",[529,1765,1766],{"align":512},"1.93M",[529,1768,1769],{"align":512},"519ns",[504,1771,1772,1775,1777],{},[529,1773,1774],{},"Emit with context",[529,1776,594],{"align":512},[529,1778,1407],{"align":512},[504,1780,1781,1784,1787],{},[529,1782,1783],{},"Full lifecycle (create + 3 sets + emit)",[529,1785,1786],{"align":512},"1.59M",[529,1788,1789],{"align":512},"628ns",[504,1791,1792,1795,1798],{},[529,1793,1794],{},"Emit with error",[529,1796,1797],{"align":512},"65.9K",[529,1799,1800],{"align":512},"15.17µs",[681,1802,1805,1808,1809,1812],{"color":1803,"icon":1804},"amber","i-lucide-triangle-alert",[485,1806,1807],{},"emit with error"," is slower because ",[485,1810,1811],{},"Error.captureStackTrace()"," is an expensive V8 operation (~15µs). This only triggers when errors are thrown.",[490,1814,1816],{"id":1815},"payload-scaling","Payload scaling",[498,1818,1819,1830],{},[501,1820,1821],{},[504,1822,1823,1826,1828],{},[507,1824,1825],{},"Payload",[507,1827,1603],{"align":512},[507,1829,1606],{"align":512},[524,1831,1832,1843,1854],{},[504,1833,1834,1837,1840],{},[529,1835,1836],{},"Small (2 fields)",[529,1838,1839],{"align":512},"1.72M",[529,1841,1842],{"align":512},"581ns",[504,1844,1845,1848,1851],{},[529,1846,1847],{},"Medium (50 fields)",[529,1849,1850],{"align":512},"569.8K",[529,1852,1853],{"align":512},"1.76µs",[504,1855,1856,1859,1862],{},[529,1857,1858],{},"Large (200 nested fields)",[529,1860,1861],{"align":512},"131.2K",[529,1863,1864],{"align":512},"7.62µs",[490,1866,175],{"id":1867},"sampling",[498,1869,1870,1880],{},[501,1871,1872],{},[504,1873,1874,1876,1878],{},[507,1875,1600],{},[507,1877,1603],{"align":512},[507,1879,1606],{"align":512},[524,1881,1882,1892],{},[504,1883,1884,1887,1890],{},[529,1885,1886],{},"Tail sampling (shouldKeep)",[529,1888,1889],{"align":512},"44.97M",[529,1891,1414],{"align":512},[504,1893,1894,1897,1900],{},[529,1895,1896],{},"Full emit with head + tail",[529,1898,1899],{"align":512},"7.01M",[529,1901,1902],{"align":512},"143ns",[490,1904,439],{"id":1504},[498,1906,1907,1918],{},[501,1908,1909],{},[504,1910,1911,1914,1916],{},[507,1912,1913],{},"Enricher",[507,1915,1603],{"align":512},[507,1917,1606],{"align":512},[524,1919,1920,1931,1942,1953,1964],{},[504,1921,1922,1925,1928],{},[529,1923,1924],{},"User Agent (Chrome)",[529,1926,1927],{"align":512},"2.61M",[529,1929,1930],{"align":512},"384ns",[504,1932,1933,1936,1939],{},[529,1934,1935],{},"Geo (Vercel)",[529,1937,1938],{"align":512},"3.88M",[529,1940,1941],{"align":512},"258ns",[504,1943,1944,1947,1950],{},[529,1945,1946],{},"Request Size",[529,1948,1949],{"align":512},"12.37M",[529,1951,1952],{"align":512},"81ns",[504,1954,1955,1958,1961],{},[529,1956,1957],{},"Trace Context",[529,1959,1960],{"align":512},"4.35M",[529,1962,1963],{"align":512},"230ns",[504,1965,1966,1971,1976],{},[529,1967,1968],{},[464,1969,1970],{},"All combined (all headers)",[529,1972,1973],{"align":512},[464,1974,1975],{},"466.7K",[529,1977,1978],{"align":512},[464,1979,1422],{},[490,1981,1983],{"id":1982},"error-handling","Error handling",[498,1985,1986,1996],{},[501,1987,1988],{},[504,1989,1990,1992,1994],{},[507,1991,1600],{},[507,1993,1603],{"align":512},[507,1995,1606],{"align":512},[524,1997,1998,2011,2023],{},[504,1999,2000,2005,2008],{},[529,2001,2002],{},[485,2003,2004],{},"createError()",[529,2006,2007],{"align":512},"232.2K",[529,2009,2010],{"align":512},"4.31µs",[504,2012,2013,2018,2021],{},[529,2014,2015],{},[485,2016,2017],{},"parseError()",[529,2019,2020],{"align":512},"45.48M",[529,2022,1414],{"align":512},[504,2024,2025,2028,2031],{},[529,2026,2027],{},"Round-trip (create + parse)",[529,2029,2030],{"align":512},"231.4K",[529,2032,2033],{"align":512},"4.32µs",[490,2035,2037],{"id":2036},"middleware-pipeline","Middleware pipeline",[498,2039,2040,2050],{},[501,2041,2042],{},[504,2043,2044,2046,2048],{},[507,2045,1600],{},[507,2047,1603],{"align":512},[507,2049,1606],{"align":512},[524,2051,2052,2066,2079,2093,2106,2117],{},[504,2053,2054,2060,2063],{},[529,2055,2056,2059],{},[485,2057,2058],{},"resolveMiddlewarePluginRunner"," (no plugins)",[529,2061,2062],{"align":512},"37.70M",[529,2064,2065],{"align":512},"27ns",[504,2067,2068,2073,2076],{},[529,2069,2070,2072],{},[485,2071,2058],{}," (2 plugins, cached)",[529,2074,2075],{"align":512},"32.26M",[529,2077,2078],{"align":512},"31ns",[504,2080,2081,2087,2090],{},[529,2082,2083,2086],{},[485,2084,2085],{},"createMiddlewareLogger"," (no plugins, safe headers)",[529,2088,2089],{"align":512},"4.41M",[529,2091,2092],{"align":512},"227ns",[504,2094,2095,2100,2103],{},[529,2096,2097,2099],{},[485,2098,2085],{}," (2 plugins, cached merge)",[529,2101,2102],{"align":512},"4.13M",[529,2104,2105],{"align":512},"242ns",[504,2107,2108,2111,2114],{},[529,2109,2110],{},"Full request lifecycle (no plugins, no drain)",[529,2112,2113],{"align":512},"993.7K",[529,2115,2116],{"align":512},"1.01µs",[504,2118,2119,2122,2125],{},[529,2120,2121],{},"Full request lifecycle (2 plugins, sync drain)",[529,2123,2124],{"align":512},"621.2K",[529,2126,2127],{"align":512},"1.61µs",[477,2129,2131],{"id":2130},"methodology-trust","Methodology & trust",[490,2133,2135],{"id":2134},"can-you-trust-these-numbers","Can you trust these numbers?",[460,2137,2138,2139,2142,2143,2146,2147,2154],{},"Every benchmark in this page is ",[464,2140,2141],{},"open source"," and ",[464,2144,2145],{},"reproducible",". The benchmark files live in ",[469,2148,2151],{"href":2149,"rel":2150},"https:\u002F\u002Fgithub.com\u002Fhugorcd\u002Fevlog\u002Ftree\u002Fmain\u002Fpackages\u002Fevlog\u002Fbench",[473],[485,2152,2153],{},"packages\u002Fevlog\u002Fbench\u002F",". You can read the exact code, run it on your machine, and verify the results.",[460,2156,2157],{},"All libraries are tested under the same conditions:",[2159,2160,2161,2168,2174,2191],"ul",{},[2162,2163,2164,2167],"li",{},[464,2165,2166],{},"Same output mode",": JSON to a no-op destination (no disk or network I\u002FO measured)",[2162,2169,2170,2173],{},[464,2171,2172],{},"Same warmup",": each benchmark runs for 500ms after JIT stabilization",[2162,2175,2176,2179,2180,2185,2186],{},[464,2177,2178],{},"Same tooling",": ",[469,2181,2184],{"href":2182,"rel":2183},"https:\u002F\u002Fvitest.dev\u002Fguide\u002Ffeatures#benchmarking",[473],"Vitest bench"," powered by ",[469,2187,2190],{"href":2188,"rel":2189},"https:\u002F\u002Fgithub.com\u002Ftinylibs\u002Ftinybench",[473],"tinybench",[2162,2192,2193,2196],{},[464,2194,2195],{},"Same machine",": when comparing libraries, all benchmarks run in the same process on the same hardware",[490,2198,2200],{"id":2199},"ci-regression-tracking","CI regression tracking",[460,2202,2203],{},"Performance regressions are tracked on every pull request via two systems:",[2159,2205,2206,2214],{},[2162,2207,2208,2213],{},[464,2209,2210],{},[469,2211,474],{"href":471,"rel":2212},[473]," runs all benchmarks using CPU instruction counting (not wall-clock timing). This eliminates noise from shared CI runners and produces deterministic, reproducible results. Regressions are flagged directly on the PR.",[2162,2215,2216,2219,2220,2222],{},[464,2217,2218],{},"Bundle size comparison"," measures all entry points against the ",[485,2221,1583],{}," baseline and posts a size delta report as a PR comment.",[490,2224,2226],{"id":2225},"run-it-yourself","Run it yourself",[704,2228,2233],{"className":2229,"code":2230,"filename":2231,"language":2232,"meta":710,"style":710},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","cd packages\u002Fevlog\n\npnpm run bench                          # all benchmarks\npnpm exec vitest bench bench\u002Fcomparison\u002F # vs alternatives only\npnpm exec tsx bench\u002Fscripts\u002Fsize.ts     # bundle size\n","Terminal","bash",[485,2234,2235,2243,2249,2265,2283],{"__ignoreMap":710},[714,2236,2237,2240],{"class":716,"line":717},[714,2238,2239],{"class":732},"cd",[714,2241,2242],{"class":752}," packages\u002Fevlog\n",[714,2244,2245],{"class":716,"line":794},[714,2246,2248],{"emptyLinePlaceholder":2247},true,"\n",[714,2250,2251,2255,2258,2261],{"class":716,"line":849},[714,2252,2254],{"class":2253},"sBMFI","pnpm",[714,2256,2257],{"class":752}," run",[714,2259,2260],{"class":752}," bench",[714,2262,2264],{"class":2263},"sHwdD","                          # all benchmarks\n",[714,2266,2267,2269,2272,2275,2277,2280],{"class":716,"line":894},[714,2268,2254],{"class":2253},[714,2270,2271],{"class":752}," exec",[714,2273,2274],{"class":752}," vitest",[714,2276,2260],{"class":752},[714,2278,2279],{"class":752}," bench\u002Fcomparison\u002F",[714,2281,2282],{"class":2263}," # vs alternatives only\n",[714,2284,2285,2287,2289,2292,2295],{"class":716,"line":945},[714,2286,2254],{"class":2253},[714,2288,2271],{"class":752},[714,2290,2291],{"class":752}," tsx",[714,2293,2294],{"class":752}," bench\u002Fscripts\u002Fsize.ts",[714,2296,2297],{"class":2263},"     # bundle size\n",[2299,2300,2301],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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}",{"title":710,"searchDepth":794,"depth":794,"links":2303},[2304,2308,2309,2310,2311,2312,2324],{"id":479,"depth":794,"text":480,"children":2305},[2306,2307],{"id":492,"depth":849,"text":493},{"id":695,"depth":849,"text":696},{"id":1220,"depth":794,"text":1221},{"id":1281,"depth":794,"text":691},{"id":1360,"depth":794,"text":1361},{"id":1443,"depth":794,"text":1444},{"id":1587,"depth":794,"text":1588,"children":2313},[2314,2315,2317,2319,2320,2321,2322,2323],{"id":1591,"depth":849,"text":646},{"id":1677,"depth":849,"text":2316},"Context accumulation (log.set())",{"id":1740,"depth":849,"text":2318},"Event emission (log.emit())",{"id":1815,"depth":849,"text":1816},{"id":1867,"depth":849,"text":175},{"id":1504,"depth":849,"text":439},{"id":1982,"depth":849,"text":1983},{"id":2036,"depth":849,"text":2037},{"id":2130,"depth":794,"text":2131,"children":2325},[2326,2327,2328],{"id":2134,"depth":849,"text":2135},{"id":2199,"depth":849,"text":2200},{"id":2225,"depth":849,"text":2226},"evlog adds ~3µs per request. Faster than pino, consola, and winston in most scenarios while emitting richer, more useful events.","md",[2332,2335],{"label":175,"icon":178,"to":176,"color":2333,"variant":2334},"neutral","subtle",{"label":170,"icon":173,"to":171,"color":2333,"variant":2334},{},{"icon":126},{"title":123,"description":2329},"cTc2EX2uoRPLQJ8aU7jFpOt5qbEDCR_pi7h_qOOCbLk",[2341,2343],{"title":185,"path":186,"stem":187,"description":2342,"icon":129,"children":-1},"Security guidelines, data sanitization, and production tips for evlog. Learn what not to log and how to protect sensitive data.",{"title":192,"path":193,"stem":194,"description":2344,"icon":195,"children":-1},"Build-time optimizations for any Vite-based framework. Auto-init, debug stripping, source location injection, and optional auto-imports.",1778340158241]