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