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