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