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