[{"data":1,"prerenderedAt":1646},["ShallowReactive",2],{"navigation_docs":3,"-core-concepts-vite-plugin":301,"-core-concepts-vite-plugin-surround":1641},[4,30,75,119,207,271,287],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Getting Started","\u002Fgetting-started","1.getting-started",[9,14,19,24],{"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",false,{"title":31,"path":32,"stem":33,"children":34,"page":29},"Logging","\u002Flogging","2.logging",[35,40,45,50,55,60,65,70],{"title":36,"path":37,"stem":38,"icon":39},"Overview","\u002Flogging\u002Foverview","2.logging\u002F0.overview","i-lucide-list",{"title":41,"path":42,"stem":43,"icon":44},"Simple Logging","\u002Flogging\u002Fsimple-logging","2.logging\u002F1.simple-logging","i-lucide-terminal",{"title":46,"path":47,"stem":48,"icon":49},"Wide Events","\u002Flogging\u002Fwide-events","2.logging\u002F2.wide-events","i-lucide-layers",{"title":51,"path":52,"stem":53,"icon":54},"Structured Errors","\u002Flogging\u002Fstructured-errors","2.logging\u002F3.structured-errors","i-lucide-shield-alert",{"title":56,"path":57,"stem":58,"icon":59},"Client Logging","\u002Flogging\u002Fclient-logging","2.logging\u002F4.client-logging","i-lucide-monitor",{"title":61,"path":62,"stem":63,"icon":64},"AI SDK Integration","\u002Flogging\u002Fai-sdk","2.logging\u002F5.ai-sdk","i-simple-icons-vercel",{"title":66,"path":67,"stem":68,"icon":69},"Better Auth Integration","\u002Flogging\u002Fbetter-auth","2.logging\u002F6.better-auth","i-simple-icons-betterauth",{"title":71,"path":72,"stem":73,"icon":74},"Audit Logs","\u002Flogging\u002Faudit","2.logging\u002F7.audit","i-lucide-shield-check",{"title":76,"path":77,"stem":78,"children":79,"page":29},"Core Concepts","\u002Fcore-concepts","3.core-concepts",[80,85,90,95,100,104,109,114],{"title":81,"path":82,"stem":83,"icon":84},"Lifecycle","\u002Fcore-concepts\u002Flifecycle","3.core-concepts\u002F0.lifecycle","i-lucide-arrow-right-left",{"title":86,"path":87,"stem":88,"icon":89},"Configuration","\u002Fcore-concepts\u002Fconfiguration","3.core-concepts\u002F1.configuration","i-lucide-settings",{"title":91,"path":92,"stem":93,"icon":94},"Sampling","\u002Fcore-concepts\u002Fsampling","3.core-concepts\u002F2.sampling","i-lucide-filter",{"title":96,"path":97,"stem":98,"icon":99},"Typed Fields","\u002Fcore-concepts\u002Ftyped-fields","3.core-concepts\u002F3.typed-fields","i-simple-icons-typescript",{"title":101,"path":102,"stem":103,"icon":74},"Best Practices","\u002Fcore-concepts\u002Fbest-practices","3.core-concepts\u002F4.best-practices",{"title":105,"path":106,"stem":107,"icon":108},"Performance","\u002Fcore-concepts\u002Fperformance","3.core-concepts\u002F5.performance","i-lucide-gauge",{"title":110,"path":111,"stem":112,"icon":113},"Vite Plugin","\u002Fcore-concepts\u002Fvite-plugin","3.core-concepts\u002F6.vite-plugin","i-custom-vite",{"title":115,"path":116,"stem":117,"icon":118},"Auto-Redaction","\u002Fcore-concepts\u002Fredaction","3.core-concepts\u002F7.redaction","i-lucide-eye-off",{"title":120,"path":121,"stem":122,"children":123,"page":29},"Frameworks","\u002Fframeworks","4.frameworks",[124,128,133,138,143,148,153,158,163,168,173,178,183,188,192,197,202],{"title":36,"path":125,"stem":126,"icon":127},"\u002Fframeworks\u002Foverview","4.frameworks\u002F00.overview","i-lucide-layout-grid",{"title":129,"path":130,"stem":131,"icon":132},"Nuxt","\u002Fframeworks\u002Fnuxt","4.frameworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":134,"path":135,"stem":136,"icon":137},"Next.js","\u002Fframeworks\u002Fnextjs","4.frameworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":139,"path":140,"stem":141,"icon":142},"SvelteKit","\u002Fframeworks\u002Fsveltekit","4.frameworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":144,"path":145,"stem":146,"icon":147},"Nitro","\u002Fframeworks\u002Fnitro","4.frameworks\u002F04.nitro","i-custom-nitro",{"title":149,"path":150,"stem":151,"icon":152},"TanStack Start","\u002Fframeworks\u002Ftanstack-start","4.frameworks\u002F05.tanstack-start","i-custom-tanstack",{"title":154,"path":155,"stem":156,"icon":157},"NestJS","\u002Fframeworks\u002Fnestjs","4.frameworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":159,"path":160,"stem":161,"icon":162},"Express","\u002Fframeworks\u002Fexpress","4.frameworks\u002F07.express","i-simple-icons-express",{"title":164,"path":165,"stem":166,"icon":167},"Hono","\u002Fframeworks\u002Fhono","4.frameworks\u002F08.hono","i-simple-icons-hono",{"title":169,"path":170,"stem":171,"icon":172},"Fastify","\u002Fframeworks\u002Ffastify","4.frameworks\u002F09.fastify","i-simple-icons-fastify",{"title":174,"path":175,"stem":176,"icon":177},"Elysia","\u002Fframeworks\u002Felysia","4.frameworks\u002F10.elysia","i-custom-elysia",{"title":179,"path":180,"stem":181,"icon":182},"React Router","\u002Fframeworks\u002Freact-router","4.frameworks\u002F11.react-router","i-custom-reactrouter",{"title":184,"path":185,"stem":186,"icon":187},"Cloudflare Workers","\u002Fframeworks\u002Fcloudflare-workers","4.frameworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":189,"path":190,"stem":191,"icon":99},"Standalone","\u002Fframeworks\u002Fstandalone","4.frameworks\u002F13.standalone",{"title":193,"path":194,"stem":195,"icon":196},"Astro","\u002Fframeworks\u002Fastro","4.frameworks\u002F14.astro","i-simple-icons-astro",{"title":198,"path":199,"stem":200,"icon":201},"Custom Integration","\u002Fframeworks\u002Fcustom-integration","4.frameworks\u002F15.custom-integration","i-lucide-puzzle",{"title":203,"path":204,"stem":205,"icon":206},"AWS Lambda","\u002Fframeworks\u002Faws-lambda","4.frameworks\u002F16.aws-lambda","i-custom-lambda",{"title":208,"path":209,"stem":210,"children":211,"page":29},"Adapters","\u002Fadapters","5.adapters",[212,216,221,226,231,236,241,246,251,256,261,266],{"title":36,"path":213,"stem":214,"icon":215},"\u002Fadapters\u002Foverview","5.adapters\u002F1.overview","i-custom-plug",{"title":217,"path":218,"stem":219,"icon":220},"Custom Adapters","\u002Fadapters\u002Fcustom","5.adapters\u002F10.custom","i-lucide-code",{"title":222,"path":223,"stem":224,"icon":225},"Pipeline","\u002Fadapters\u002Fpipeline","5.adapters\u002F11.pipeline","i-lucide-workflow",{"title":227,"path":228,"stem":229,"icon":230},"HTTP","\u002Fadapters\u002Fhttp","5.adapters\u002F12.http","i-lucide-globe",{"title":232,"path":233,"stem":234,"icon":235},"Axiom","\u002Fadapters\u002Faxiom","5.adapters\u002F2.axiom","i-custom-axiom",{"title":237,"path":238,"stem":239,"icon":240},"OTLP","\u002Fadapters\u002Fotlp","5.adapters\u002F3.otlp","i-simple-icons-opentelemetry",{"title":242,"path":243,"stem":244,"icon":245},"PostHog","\u002Fadapters\u002Fposthog","5.adapters\u002F4.posthog","i-simple-icons-posthog",{"title":247,"path":248,"stem":249,"icon":250},"Sentry","\u002Fadapters\u002Fsentry","5.adapters\u002F5.sentry","i-simple-icons-sentry",{"title":252,"path":253,"stem":254,"icon":255},"Better Stack","\u002Fadapters\u002Fbetter-stack","5.adapters\u002F6.better-stack","i-simple-icons-betterstack",{"title":257,"path":258,"stem":259,"icon":260},"File System","\u002Fadapters\u002Ffs","5.adapters\u002F7.fs","i-lucide-hard-drive",{"title":262,"path":263,"stem":264,"icon":265},"Datadog","\u002Fadapters\u002Fdatadog","5.adapters\u002F8.datadog","i-simple-icons-datadog",{"title":267,"path":268,"stem":269,"icon":270},"HyperDX","\u002Fadapters\u002Fhyperdx","5.adapters\u002F9.hyperdx","i-custom-hyperdx",{"title":272,"path":273,"stem":274,"children":275,"page":29},"Enrichers","\u002Fenrichers","6.enrichers",[276,279,283],{"title":36,"path":277,"stem":278,"icon":28},"\u002Fenrichers\u002Foverview","6.enrichers\u002F1.overview",{"title":280,"path":281,"stem":282,"icon":201},"Built-in","\u002Fenrichers\u002Fbuilt-in","6.enrichers\u002F2.built-in",{"title":284,"path":285,"stem":286,"icon":220},"Custom","\u002Fenrichers\u002Fcustom","6.enrichers\u002F3.custom",{"title":288,"path":289,"stem":290,"children":291,"page":29},"NuxtHub","\u002Fnuxthub","7.nuxthub",[292,296],{"title":36,"path":293,"stem":294,"icon":295},"\u002Fnuxthub\u002Foverview","7.nuxthub\u002F1.overview","i-lucide-database",{"title":297,"path":298,"stem":299,"icon":300},"Retention","\u002Fnuxthub\u002Fretention","7.nuxthub\u002F2.retention","i-lucide-clock",{"id":302,"title":110,"body":303,"description":1628,"extension":1629,"links":1630,"meta":1637,"navigation":1638,"path":111,"seo":1639,"stem":112,"__hash__":1640},"docs\u002F3.core-concepts\u002F6.vite-plugin.md",{"type":304,"value":305,"toc":1611},"minimark",[306,315,336,340,345,371,378,543,546,564,568,572,594,722,743,747,753,825,836,840,847,904,907,953,956,1009,1013,1025,1069,1072,1091,1112,1116,1134,1235,1238,1447,1451,1462,1585,1589,1607],[307,308,309,310,314],"p",{},"The ",[311,312,313],"code",{},"evlog\u002Fvite"," plugin adds build-time DX features to any Vite-based project. It works with SvelteKit, Hono, Express, Fastify, Elysia, and any framework using Vite as its build tool.",[316,317,319,323,324,327,328,331,332,335],"callout",{"color":318,"icon":13},"info",[320,321,322],"strong",{},"Nuxt users",": These features are already integrated into the ",[311,325,326],{},"evlog\u002Fnuxt"," module via ",[311,329,330],{},"strip"," and ",[311,333,334],{},"sourceLocation"," options. You don't need to install the Vite plugin separately.",[337,338,20],"h2",{"id":339},"quick-start",[341,342,344],"h3",{"id":343},"_1-install","1. Install",[346,347,353],"pre",{"className":348,"code":349,"filename":350,"language":351,"meta":352,"style":352},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","bun add evlog\n","Terminal","bash","",[311,354,355],{"__ignoreMap":352},[356,357,360,364,368],"span",{"class":358,"line":359},"line",1,[356,361,363],{"class":362},"sBMFI","bun",[356,365,367],{"class":366},"sfazB"," add",[356,369,370],{"class":366}," evlog\n",[341,372,374,375],{"id":373},"_2-add-to-viteconfigts","2. Add to ",[311,376,377],{},"vite.config.ts",[346,379,383],{"className":380,"code":381,"filename":377,"language":382,"meta":352,"style":352},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { defineConfig } from 'vite'\nimport evlog from 'evlog\u002Fvite'\n\nexport default defineConfig({\n  plugins: [\n    evlog({\n      service: 'my-api',\n      environment: 'production',\n    }),\n  ],\n})\n","typescript",[311,384,385,414,431,438,456,469,479,498,515,526,534],{"__ignoreMap":352},[356,386,387,391,395,399,402,405,408,411],{"class":358,"line":359},[356,388,390],{"class":389},"s7zQu","import",[356,392,394],{"class":393},"sMK4o"," {",[356,396,398],{"class":397},"sTEyZ"," defineConfig",[356,400,401],{"class":393}," }",[356,403,404],{"class":389}," from",[356,406,407],{"class":393}," '",[356,409,410],{"class":366},"vite",[356,412,413],{"class":393},"'\n",[356,415,417,419,422,425,427,429],{"class":358,"line":416},2,[356,418,390],{"class":389},[356,420,421],{"class":397}," evlog ",[356,423,424],{"class":389},"from",[356,426,407],{"class":393},[356,428,313],{"class":366},[356,430,413],{"class":393},[356,432,434],{"class":358,"line":433},3,[356,435,437],{"emptyLinePlaceholder":436},true,"\n",[356,439,441,444,447,450,453],{"class":358,"line":440},4,[356,442,443],{"class":389},"export",[356,445,446],{"class":389}," default",[356,448,398],{"class":449},"s2Zo4",[356,451,452],{"class":397},"(",[356,454,455],{"class":393},"{\n",[356,457,459,463,466],{"class":358,"line":458},5,[356,460,462],{"class":461},"swJcz","  plugins",[356,464,465],{"class":393},":",[356,467,468],{"class":397}," [\n",[356,470,472,475,477],{"class":358,"line":471},6,[356,473,474],{"class":449},"    evlog",[356,476,452],{"class":397},[356,478,455],{"class":393},[356,480,482,485,487,489,492,495],{"class":358,"line":481},7,[356,483,484],{"class":461},"      service",[356,486,465],{"class":393},[356,488,407],{"class":393},[356,490,491],{"class":366},"my-api",[356,493,494],{"class":393},"'",[356,496,497],{"class":393},",\n",[356,499,501,504,506,508,511,513],{"class":358,"line":500},8,[356,502,503],{"class":461},"      environment",[356,505,465],{"class":393},[356,507,407],{"class":393},[356,509,510],{"class":366},"production",[356,512,494],{"class":393},[356,514,497],{"class":393},[356,516,518,521,524],{"class":358,"line":517},9,[356,519,520],{"class":393},"    }",[356,522,523],{"class":397},")",[356,525,497],{"class":393},[356,527,529,532],{"class":358,"line":528},10,[356,530,531],{"class":397},"  ]",[356,533,497],{"class":393},[356,535,537,540],{"class":358,"line":536},11,[356,538,539],{"class":393},"}",[356,541,542],{"class":397},")\n",[307,544,545],{},"That's it. The plugin automatically:",[547,548,549,557],"ul",{},[550,551,552,553,556],"li",{},"Initializes the logger at compile time (no ",[311,554,555],{},"initLogger()"," call needed)",[550,558,559,560,563],{},"Strips ",[311,561,562],{},"log.debug()"," calls from production builds",[337,565,567],{"id":566},"features","Features",[341,569,571],{"id":570},"auto-initialization","Auto-initialization",[307,573,574,575,578,579,582,583,586,587,590,591,593],{},"The plugin injects logger configuration at compile time via Vite's ",[311,576,577],{},"define"," hook. Your code can use ",[311,580,581],{},"log",", ",[311,584,585],{},"createLogger()",", and ",[311,588,589],{},"createRequestLogger()"," immediately, no ",[311,592,555],{}," call required.",[346,595,598],{"className":380,"code":596,"filename":597,"language":382,"meta":352,"style":352},"\u002F\u002F Before (manual setup)\nimport { initLogger, createLogger } from 'evlog'\ninitLogger({ env: { service: 'my-api' } })\nconst log = createLogger()\n\n\u002F\u002F After (with Vite plugin)\nimport { createLogger } from 'evlog'\nconst log = createLogger()\n","logger-setup.ts",[311,599,600,606,632,666,683,687,692,710],{"__ignoreMap":352},[356,601,602],{"class":358,"line":359},[356,603,605],{"class":604},"sHwdD","\u002F\u002F Before (manual setup)\n",[356,607,608,610,612,615,618,621,623,625,627,630],{"class":358,"line":416},[356,609,390],{"class":389},[356,611,394],{"class":393},[356,613,614],{"class":397}," initLogger",[356,616,617],{"class":393},",",[356,619,620],{"class":397}," createLogger",[356,622,401],{"class":393},[356,624,404],{"class":389},[356,626,407],{"class":393},[356,628,629],{"class":366},"evlog",[356,631,413],{"class":393},[356,633,634,637,639,642,645,647,649,652,654,656,658,660,662,664],{"class":358,"line":433},[356,635,636],{"class":449},"initLogger",[356,638,452],{"class":397},[356,640,641],{"class":393},"{",[356,643,644],{"class":461}," env",[356,646,465],{"class":393},[356,648,394],{"class":393},[356,650,651],{"class":461}," service",[356,653,465],{"class":393},[356,655,407],{"class":393},[356,657,491],{"class":366},[356,659,494],{"class":393},[356,661,401],{"class":393},[356,663,401],{"class":393},[356,665,542],{"class":397},[356,667,668,672,675,678,680],{"class":358,"line":440},[356,669,671],{"class":670},"spNyl","const",[356,673,674],{"class":397}," log ",[356,676,677],{"class":393},"=",[356,679,620],{"class":449},[356,681,682],{"class":397},"()\n",[356,684,685],{"class":358,"line":458},[356,686,437],{"emptyLinePlaceholder":436},[356,688,689],{"class":358,"line":471},[356,690,691],{"class":604},"\u002F\u002F After (with Vite plugin)\n",[356,693,694,696,698,700,702,704,706,708],{"class":358,"line":481},[356,695,390],{"class":389},[356,697,394],{"class":393},[356,699,620],{"class":397},[356,701,401],{"class":393},[356,703,404],{"class":389},[356,705,407],{"class":393},[356,707,629],{"class":366},[356,709,413],{"class":393},[356,711,712,714,716,718,720],{"class":358,"line":500},[356,713,671],{"class":670},[356,715,674],{"class":397},[356,717,677],{"class":393},[356,719,620],{"class":449},[356,721,682],{"class":397},[307,723,309,724,582,727,582,730,582,733,582,736,586,739,742],{},[311,725,726],{},"service",[311,728,729],{},"environment",[311,731,732],{},"pretty",[311,734,735],{},"silent",[311,737,738],{},"enabled",[311,740,741],{},"sampling"," options are serialized and injected at build time.",[341,744,746],{"id":745},"debug-stripping","Debug stripping",[307,748,749,750,752],{},"By default, all ",[311,751,562],{}," calls are removed from production builds. This is a compile-time transformation, the calls are completely eliminated from the output, not just silenced.",[346,754,756],{"className":380,"code":755,"filename":377,"language":382,"meta":352,"style":352},"evlog({\n  service: 'my-api',\n  \u002F\u002F Default: strip debug logs in production builds\n  \u002F\u002F strip: ['debug'],\n\n  \u002F\u002F Strip debug and info in production:\n  \u002F\u002F strip: ['debug', 'info'],\n\n  \u002F\u002F Disable stripping:\n  \u002F\u002F strip: [],\n})\n",[311,757,758,766,781,786,791,795,800,805,809,814,819],{"__ignoreMap":352},[356,759,760,762,764],{"class":358,"line":359},[356,761,629],{"class":449},[356,763,452],{"class":397},[356,765,455],{"class":393},[356,767,768,771,773,775,777,779],{"class":358,"line":416},[356,769,770],{"class":461},"  service",[356,772,465],{"class":393},[356,774,407],{"class":393},[356,776,491],{"class":366},[356,778,494],{"class":393},[356,780,497],{"class":393},[356,782,783],{"class":358,"line":433},[356,784,785],{"class":604},"  \u002F\u002F Default: strip debug logs in production builds\n",[356,787,788],{"class":358,"line":440},[356,789,790],{"class":604},"  \u002F\u002F strip: ['debug'],\n",[356,792,793],{"class":358,"line":458},[356,794,437],{"emptyLinePlaceholder":436},[356,796,797],{"class":358,"line":471},[356,798,799],{"class":604},"  \u002F\u002F Strip debug and info in production:\n",[356,801,802],{"class":358,"line":481},[356,803,804],{"class":604},"  \u002F\u002F strip: ['debug', 'info'],\n",[356,806,807],{"class":358,"line":500},[356,808,437],{"emptyLinePlaceholder":436},[356,810,811],{"class":358,"line":517},[356,812,813],{"class":604},"  \u002F\u002F Disable stripping:\n",[356,815,816],{"class":358,"line":528},[356,817,818],{"class":604},"  \u002F\u002F strip: [],\n",[356,820,821,823],{"class":358,"line":536},[356,822,539],{"class":393},[356,824,542],{"class":397},[307,826,827,828,831,832,835],{},"Stripping only activates during ",[311,829,830],{},"vite build"," (not ",[311,833,834],{},"vite dev",").",[341,837,839],{"id":838},"source-location-injection","Source location injection",[307,841,842,843,846],{},"When enabled, the plugin injects ",[311,844,845],{},"__source: 'file:line'"," into object-form log calls. This tells you exactly which file and line produced each log entry.",[346,848,850],{"className":380,"code":849,"filename":377,"language":382,"meta":352,"style":352},"evlog({\n  service: 'my-api',\n  sourceLocation: true,      \u002F\u002F Always inject\n  \u002F\u002F sourceLocation: 'dev',  \u002F\u002F Only in development\n})\n",[311,851,852,860,874,890,898],{"__ignoreMap":352},[356,853,854,856,858],{"class":358,"line":359},[356,855,629],{"class":449},[356,857,452],{"class":397},[356,859,455],{"class":393},[356,861,862,864,866,868,870,872],{"class":358,"line":416},[356,863,770],{"class":461},[356,865,465],{"class":393},[356,867,407],{"class":393},[356,869,491],{"class":366},[356,871,494],{"class":393},[356,873,497],{"class":393},[356,875,876,879,881,885,887],{"class":358,"line":433},[356,877,878],{"class":461},"  sourceLocation",[356,880,465],{"class":393},[356,882,884],{"class":883},"sfNiH"," true",[356,886,617],{"class":393},[356,888,889],{"class":604},"      \u002F\u002F Always inject\n",[356,891,892,895],{"class":358,"line":440},[356,893,894],{"class":604},"  \u002F\u002F sourceLocation: 'dev',",[356,896,897],{"class":604},"  \u002F\u002F Only in development\n",[356,899,900,902],{"class":358,"line":458},[356,901,539],{"class":393},[356,903,542],{"class":397},[307,905,906],{},"Before transform:",[346,908,911],{"className":380,"code":909,"filename":910,"language":382,"meta":352,"style":352},"log.info({ action: 'checkout', total: 99 })\n","src\u002Fcheckout.ts",[311,912,913],{"__ignoreMap":352},[356,914,915,917,920,922,924,926,929,931,933,936,938,940,943,945,949,951],{"class":358,"line":359},[356,916,581],{"class":397},[356,918,919],{"class":393},".",[356,921,318],{"class":449},[356,923,452],{"class":397},[356,925,641],{"class":393},[356,927,928],{"class":461}," action",[356,930,465],{"class":393},[356,932,407],{"class":393},[356,934,935],{"class":366},"checkout",[356,937,494],{"class":393},[356,939,617],{"class":393},[356,941,942],{"class":461}," total",[356,944,465],{"class":393},[356,946,948],{"class":947},"sbssI"," 99",[356,950,401],{"class":393},[356,952,542],{"class":397},[307,954,955],{},"After transform:",[346,957,959],{"className":380,"code":958,"filename":910,"language":382,"meta":352,"style":352},"log.info({ action: 'checkout', total: 99, __source: 'src\u002Fcheckout.ts:42' })\n",[311,960,961],{"__ignoreMap":352},[356,962,963,965,967,969,971,973,975,977,979,981,983,985,987,989,991,993,996,998,1000,1003,1005,1007],{"class":358,"line":359},[356,964,581],{"class":397},[356,966,919],{"class":393},[356,968,318],{"class":449},[356,970,452],{"class":397},[356,972,641],{"class":393},[356,974,928],{"class":461},[356,976,465],{"class":393},[356,978,407],{"class":393},[356,980,935],{"class":366},[356,982,494],{"class":393},[356,984,617],{"class":393},[356,986,942],{"class":461},[356,988,465],{"class":393},[356,990,948],{"class":947},[356,992,617],{"class":393},[356,994,995],{"class":461}," __source",[356,997,465],{"class":393},[356,999,407],{"class":393},[356,1001,1002],{"class":366},"src\u002Fcheckout.ts:42",[356,1004,494],{"class":393},[356,1006,401],{"class":393},[356,1008,542],{"class":397},[341,1010,1012],{"id":1011},"auto-imports-opt-in","Auto-imports (opt-in)",[307,1014,1015,1016,582,1018,582,1021,1024],{},"Automatically detect and import evlog symbols (",[311,1017,581],{},[311,1019,1020],{},"createEvlogError",[311,1022,1023],{},"parseError",", etc.) without manual import statements. Disabled by default.",[346,1026,1028],{"className":380,"code":1027,"filename":377,"language":382,"meta":352,"style":352},"evlog({\n  service: 'my-api',\n  autoImports: true,\n})\n",[311,1029,1030,1038,1052,1063],{"__ignoreMap":352},[356,1031,1032,1034,1036],{"class":358,"line":359},[356,1033,629],{"class":449},[356,1035,452],{"class":397},[356,1037,455],{"class":393},[356,1039,1040,1042,1044,1046,1048,1050],{"class":358,"line":416},[356,1041,770],{"class":461},[356,1043,465],{"class":393},[356,1045,407],{"class":393},[356,1047,491],{"class":366},[356,1049,494],{"class":393},[356,1051,497],{"class":393},[356,1053,1054,1057,1059,1061],{"class":358,"line":433},[356,1055,1056],{"class":461},"  autoImports",[356,1058,465],{"class":393},[356,1060,884],{"class":883},[356,1062,497],{"class":393},[356,1064,1065,1067],{"class":358,"line":440},[356,1066,539],{"class":393},[356,1068,542],{"class":397},[307,1070,1071],{},"When enabled, the plugin:",[1073,1074,1075,1078,1084],"ol",{},[550,1076,1077],{},"Scans your code for evlog symbols",[550,1079,1080,1081,1083],{},"Adds the correct ",[311,1082,390],{}," statements automatically",[550,1085,1086,1087,1090],{},"Generates a ",[311,1088,1089],{},".d.ts"," file for TypeScript support",[316,1092,1095,1096,1098,1099,1102,1103,1105,1106,1108,1109,1111],{"color":1093,"icon":1094},"amber","i-lucide-triangle-alert","The auto-imported error constructor is ",[311,1097,1020],{},", not ",[311,1100,1101],{},"createError",". This avoids conflicts with framework-native ",[311,1104,1101],{}," (Nuxt, Nitro, h3). The standalone ",[311,1107,1101],{}," from ",[311,1110,629],{}," is still available via explicit import.",[341,1113,1115],{"id":1114},"client-side-injection","Client-side injection",[307,1117,1118,1119,1122,1123,1126,1127,582,1130,1133],{},"When the ",[311,1120,1121],{},"client"," option is provided, the plugin injects a ",[311,1124,1125],{},"\u003Cscript>"," tag into HTML pages that initializes the client-side logger. This enables ",[311,1128,1129],{},"log.info()",[311,1131,1132],{},"log.error()",", etc. in browser code.",[346,1135,1137],{"className":380,"code":1136,"filename":377,"language":382,"meta":352,"style":352},"evlog({\n  service: 'my-api',\n  client: {\n    console: false,\n    transport: {\n      enabled: true,\n      endpoint: '\u002Fapi\u002F_evlog\u002Fingest',\n    },\n  },\n})\n",[311,1138,1139,1147,1161,1171,1183,1192,1203,1219,1224,1229],{"__ignoreMap":352},[356,1140,1141,1143,1145],{"class":358,"line":359},[356,1142,629],{"class":449},[356,1144,452],{"class":397},[356,1146,455],{"class":393},[356,1148,1149,1151,1153,1155,1157,1159],{"class":358,"line":416},[356,1150,770],{"class":461},[356,1152,465],{"class":393},[356,1154,407],{"class":393},[356,1156,491],{"class":366},[356,1158,494],{"class":393},[356,1160,497],{"class":393},[356,1162,1163,1166,1168],{"class":358,"line":433},[356,1164,1165],{"class":461},"  client",[356,1167,465],{"class":393},[356,1169,1170],{"class":393}," {\n",[356,1172,1173,1176,1178,1181],{"class":358,"line":440},[356,1174,1175],{"class":461},"    console",[356,1177,465],{"class":393},[356,1179,1180],{"class":883}," false",[356,1182,497],{"class":393},[356,1184,1185,1188,1190],{"class":358,"line":458},[356,1186,1187],{"class":461},"    transport",[356,1189,465],{"class":393},[356,1191,1170],{"class":393},[356,1193,1194,1197,1199,1201],{"class":358,"line":471},[356,1195,1196],{"class":461},"      enabled",[356,1198,465],{"class":393},[356,1200,884],{"class":883},[356,1202,497],{"class":393},[356,1204,1205,1208,1210,1212,1215,1217],{"class":358,"line":481},[356,1206,1207],{"class":461},"      endpoint",[356,1209,465],{"class":393},[356,1211,407],{"class":393},[356,1213,1214],{"class":366},"\u002Fapi\u002F_evlog\u002Fingest",[356,1216,494],{"class":393},[356,1218,497],{"class":393},[356,1220,1221],{"class":358,"line":500},[356,1222,1223],{"class":393},"    },\n",[356,1225,1226],{"class":358,"line":517},[356,1227,1228],{"class":393},"  },\n",[356,1230,1231,1233],{"class":358,"line":528},[356,1232,539],{"class":393},[356,1234,542],{"class":397},[337,1236,86],{"id":1237},"configuration",[1239,1240,1241,1260],"table",{},[1242,1243,1244],"thead",{},[1245,1246,1247,1251,1254,1257],"tr",{},[1248,1249,1250],"th",{},"Option",[1248,1252,1253],{},"Type",[1248,1255,1256],{},"Default",[1248,1258,1259],{},"Description",[1261,1262,1263,1283,1299,1319,1337,1354,1373,1391,1409,1432],"tbody",{},[1245,1264,1265,1270,1275,1280],{},[1266,1267,1268],"td",{},[311,1269,726],{},[1266,1271,1272],{},[311,1273,1274],{},"string",[1266,1276,1277],{},[311,1278,1279],{},"'app'",[1266,1281,1282],{},"Service name in logs",[1245,1284,1285,1289,1293,1296],{},[1266,1286,1287],{},[311,1288,729],{},[1266,1290,1291],{},[311,1292,1274],{},[1266,1294,1295],{},"Auto-detected",[1266,1297,1298],{},"Environment name",[1245,1300,1301,1305,1310,1316],{},[1266,1302,1303],{},[311,1304,732],{},[1266,1306,1307],{},[311,1308,1309],{},"boolean",[1266,1311,1312,1315],{},[311,1313,1314],{},"true"," in dev",[1266,1317,1318],{},"Pretty print logs",[1245,1320,1321,1325,1329,1334],{},[1266,1322,1323],{},[311,1324,735],{},[1266,1326,1327],{},[311,1328,1309],{},[1266,1330,1331],{},[311,1332,1333],{},"false",[1266,1335,1336],{},"Suppress console output",[1245,1338,1339,1343,1347,1351],{},[1266,1340,1341],{},[311,1342,738],{},[1266,1344,1345],{},[311,1346,1309],{},[1266,1348,1349],{},[311,1350,1314],{},[1266,1352,1353],{},"Enable\u002Fdisable all logging",[1245,1355,1356,1360,1365,1370],{},[1266,1357,1358],{},[311,1359,330],{},[1266,1361,1362],{},[311,1363,1364],{},"LogLevel[]",[1266,1366,1367],{},[311,1368,1369],{},"['debug']",[1266,1371,1372],{},"Log levels to remove from production builds",[1245,1374,1375,1379,1384,1388],{},[1266,1376,1377],{},[311,1378,334],{},[1266,1380,1381],{},[311,1382,1383],{},"boolean | 'dev'",[1266,1385,1386],{},[311,1387,1333],{},[1266,1389,1390],{},"Inject source file:line into log calls",[1245,1392,1393,1398,1402,1406],{},[1266,1394,1395],{},[311,1396,1397],{},"autoImports",[1266,1399,1400],{},[311,1401,1309],{},[1266,1403,1404],{},[311,1405,1333],{},[1266,1407,1408],{},"Auto-import evlog symbols",[1245,1410,1411,1415,1420,1423],{},[1266,1412,1413],{},[311,1414,1121],{},[1266,1416,1417],{},[311,1418,1419],{},"object",[1266,1421,1422],{},"—",[1266,1424,1425,1426,582,1429,523],{},"Client-side injection config (",[311,1427,1428],{},"console",[311,1430,1431],{},"transport",[1245,1433,1434,1438,1442,1444],{},[1266,1435,1436],{},[311,1437,741],{},[1266,1439,1440],{},[311,1441,1419],{},[1266,1443,1422],{},[1266,1445,1446],{},"Head\u002Ftail sampling rates",[337,1448,1450],{"id":1449},"nuxt-integration","Nuxt Integration",[307,1452,1453,1454,331,1456,1458,1459,465],{},"The Nuxt module exposes ",[311,1455,330],{},[311,1457,334],{}," directly in ",[311,1460,1461],{},"nuxt.config.ts",[346,1463,1465],{"className":380,"code":1464,"filename":1461,"language":382,"meta":352,"style":352},"export default defineNuxtConfig({\n  modules: ['evlog\u002Fnuxt'],\n  evlog: {\n    env: { service: 'my-app' },\n    strip: ['debug'],           \u002F\u002F Default\n    sourceLocation: 'dev',      \u002F\u002F Inject in dev only\n  },\n})\n",[311,1466,1467,1480,1501,1510,1533,1556,1575,1579],{"__ignoreMap":352},[356,1468,1469,1471,1473,1476,1478],{"class":358,"line":359},[356,1470,443],{"class":389},[356,1472,446],{"class":389},[356,1474,1475],{"class":449}," defineNuxtConfig",[356,1477,452],{"class":397},[356,1479,455],{"class":393},[356,1481,1482,1485,1487,1490,1492,1494,1496,1499],{"class":358,"line":416},[356,1483,1484],{"class":461},"  modules",[356,1486,465],{"class":393},[356,1488,1489],{"class":397}," [",[356,1491,494],{"class":393},[356,1493,326],{"class":366},[356,1495,494],{"class":393},[356,1497,1498],{"class":397},"]",[356,1500,497],{"class":393},[356,1502,1503,1506,1508],{"class":358,"line":433},[356,1504,1505],{"class":461},"  evlog",[356,1507,465],{"class":393},[356,1509,1170],{"class":393},[356,1511,1512,1515,1517,1519,1521,1523,1525,1528,1530],{"class":358,"line":440},[356,1513,1514],{"class":461},"    env",[356,1516,465],{"class":393},[356,1518,394],{"class":393},[356,1520,651],{"class":461},[356,1522,465],{"class":393},[356,1524,407],{"class":393},[356,1526,1527],{"class":366},"my-app",[356,1529,494],{"class":393},[356,1531,1532],{"class":393}," },\n",[356,1534,1535,1538,1540,1542,1544,1547,1549,1551,1553],{"class":358,"line":458},[356,1536,1537],{"class":461},"    strip",[356,1539,465],{"class":393},[356,1541,1489],{"class":397},[356,1543,494],{"class":393},[356,1545,1546],{"class":366},"debug",[356,1548,494],{"class":393},[356,1550,1498],{"class":397},[356,1552,617],{"class":393},[356,1554,1555],{"class":604},"           \u002F\u002F Default\n",[356,1557,1558,1561,1563,1565,1568,1570,1572],{"class":358,"line":471},[356,1559,1560],{"class":461},"    sourceLocation",[356,1562,465],{"class":393},[356,1564,407],{"class":393},[356,1566,1567],{"class":366},"dev",[356,1569,494],{"class":393},[356,1571,617],{"class":393},[356,1573,1574],{"class":604},"      \u002F\u002F Inject in dev only\n",[356,1576,1577],{"class":358,"line":481},[356,1578,1228],{"class":393},[356,1580,1581,1583],{"class":358,"line":500},[356,1582,539],{"class":393},[356,1584,542],{"class":397},[337,1586,1588],{"id":1587},"vite-compatibility","Vite Compatibility",[307,1590,1591,1592,1595,1596,1599,1600,331,1603,1606],{},"The plugin supports ",[320,1593,1594],{},"Vite 7+"," and is optimized for ",[320,1597,1598],{},"Vite 8"," (Rolldown). On Vite 8, transform hooks use Rolldown-native ",[311,1601,1602],{},"filter",[311,1604,1605],{},"moduleType"," for maximum performance, non-matching files are skipped entirely on the Rust side without crossing the JS bridge.",[1608,1609,1610],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .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 .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":352,"searchDepth":416,"depth":416,"links":1612},[1613,1618,1625,1626,1627],{"id":339,"depth":416,"text":20,"children":1614},[1615,1616],{"id":343,"depth":433,"text":344},{"id":373,"depth":433,"text":1617},"2. Add to vite.config.ts",{"id":566,"depth":416,"text":567,"children":1619},[1620,1621,1622,1623,1624],{"id":570,"depth":433,"text":571},{"id":745,"depth":433,"text":746},{"id":838,"depth":433,"text":839},{"id":1011,"depth":433,"text":1012},{"id":1114,"depth":433,"text":1115},{"id":1237,"depth":416,"text":86},{"id":1449,"depth":416,"text":1450},{"id":1587,"depth":416,"text":1588},"Build-time optimizations for any Vite-based framework. Auto-init, debug stripping, source location injection, and optional auto-imports.","md",[1631],{"label":1632,"icon":1633,"to":1634,"color":1635,"variant":1636},"Source Code","i-simple-icons-github","https:\u002F\u002Fgithub.com\u002Fhugorcd\u002Fevlog\u002Ftree\u002Fmain\u002Fpackages\u002Fevlog\u002Fsrc\u002Fvite","neutral","subtle",{},{"icon":113},{"title":110,"description":1628},"4FFd_h3Mb6mguh9R2d0HNdUZCLC1NHW6Bi8nj0QgYEE",[1642,1644],{"title":105,"path":106,"stem":107,"description":1643,"icon":108,"children":-1},"evlog adds ~3µs per request. Faster than pino, consola, and winston in most scenarios while emitting richer, more useful events.",{"title":115,"path":116,"stem":117,"description":1645,"icon":118,"children":-1},"Automatically scrub PII from wide events before console output and drains. Built-in smart masking for credit cards, emails, IPs, phone numbers, JWTs, and more.",1777047253693]