[{"data":1,"prerenderedAt":1584},["ShallowReactive",2],{"navigation_docs":3,"-core-concepts-vite-plugin":407,"-core-concepts-vite-plugin-surround":1579},[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":192,"body":409,"description":1566,"extension":1567,"links":1568,"meta":1575,"navigation":1576,"path":193,"seo":1577,"stem":194,"__hash__":1578},"docs\u002F3.core-concepts\u002F6.vite-plugin.md",{"type":410,"value":411,"toc":1549},"minimark",[412,421,442,446,451,522,529,694,697,715,719,722,739,743,783,787,793,867,878,882,888,946,950,962,1006,1009,1028,1049,1053,1071,1172,1175,1384,1388,1399,1523,1527,1545],[413,414,415,416,420],"p",{},"The ",[417,418,419],"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.",[422,423,425,429,430,433,434,437,438,441],"callout",{"color":424,"icon":13},"info",[426,427,428],"strong",{},"Nuxt users",": These features are already integrated into the ",[417,431,432],{},"evlog\u002Fnuxt"," module via ",[417,435,436],{},"strip"," and ",[417,439,440],{},"sourceLocation"," options. You don't need to install the Vite plugin separately.",[443,444,20],"h2",{"id":445},"quick-start",[447,448,450],"h3",{"id":449},"_1-install","1. Install",[452,453,454,479,493,507],"code-group",{},[455,456,462],"pre",{"className":457,"code":458,"filename":459,"language":460,"meta":461,"style":461},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add evlog\n","pnpm","bash","",[417,463,464],{"__ignoreMap":461},[465,466,469,472,476],"span",{"class":467,"line":468},"line",1,[465,470,459],{"class":471},"sBMFI",[465,473,475],{"class":474},"sfazB"," add",[465,477,478],{"class":474}," evlog\n",[455,480,483],{"className":457,"code":481,"filename":482,"language":460,"meta":461,"style":461},"bun add evlog\n","bun",[417,484,485],{"__ignoreMap":461},[465,486,487,489,491],{"class":467,"line":468},[465,488,482],{"class":471},[465,490,475],{"class":474},[465,492,478],{"class":474},[455,494,497],{"className":457,"code":495,"filename":496,"language":460,"meta":461,"style":461},"yarn add evlog\n","yarn",[417,498,499],{"__ignoreMap":461},[465,500,501,503,505],{"class":467,"line":468},[465,502,496],{"class":471},[465,504,475],{"class":474},[465,506,478],{"class":474},[455,508,511],{"className":457,"code":509,"filename":510,"language":460,"meta":461,"style":461},"npm install evlog\n","npm",[417,512,513],{"__ignoreMap":461},[465,514,515,517,520],{"class":467,"line":468},[465,516,510],{"class":471},[465,518,519],{"class":474}," install",[465,521,478],{"class":474},[447,523,525,526],{"id":524},"_2-add-to-viteconfigts","2. Add to ",[417,527,528],{},"vite.config.ts",[455,530,534],{"className":531,"code":532,"filename":528,"language":533,"meta":461,"style":461},"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",[417,535,536,565,582,589,607,620,630,649,666,677,685],{"__ignoreMap":461},[465,537,538,542,546,550,553,556,559,562],{"class":467,"line":468},[465,539,541],{"class":540},"s7zQu","import",[465,543,545],{"class":544},"sMK4o"," {",[465,547,549],{"class":548},"sTEyZ"," defineConfig",[465,551,552],{"class":544}," }",[465,554,555],{"class":540}," from",[465,557,558],{"class":544}," '",[465,560,561],{"class":474},"vite",[465,563,564],{"class":544},"'\n",[465,566,568,570,573,576,578,580],{"class":467,"line":567},2,[465,569,541],{"class":540},[465,571,572],{"class":548}," evlog ",[465,574,575],{"class":540},"from",[465,577,558],{"class":544},[465,579,419],{"class":474},[465,581,564],{"class":544},[465,583,585],{"class":467,"line":584},3,[465,586,588],{"emptyLinePlaceholder":587},true,"\n",[465,590,592,595,598,601,604],{"class":467,"line":591},4,[465,593,594],{"class":540},"export",[465,596,597],{"class":540}," default",[465,599,549],{"class":600},"s2Zo4",[465,602,603],{"class":548},"(",[465,605,606],{"class":544},"{\n",[465,608,610,614,617],{"class":467,"line":609},5,[465,611,613],{"class":612},"swJcz","  plugins",[465,615,616],{"class":544},":",[465,618,619],{"class":548}," [\n",[465,621,623,626,628],{"class":467,"line":622},6,[465,624,625],{"class":600},"    evlog",[465,627,603],{"class":548},[465,629,606],{"class":544},[465,631,633,636,638,640,643,646],{"class":467,"line":632},7,[465,634,635],{"class":612},"      service",[465,637,616],{"class":544},[465,639,558],{"class":544},[465,641,642],{"class":474},"my-api",[465,644,645],{"class":544},"'",[465,647,648],{"class":544},",\n",[465,650,652,655,657,659,662,664],{"class":467,"line":651},8,[465,653,654],{"class":612},"      environment",[465,656,616],{"class":544},[465,658,558],{"class":544},[465,660,661],{"class":474},"production",[465,663,645],{"class":544},[465,665,648],{"class":544},[465,667,669,672,675],{"class":467,"line":668},9,[465,670,671],{"class":544},"    }",[465,673,674],{"class":548},")",[465,676,648],{"class":544},[465,678,680,683],{"class":467,"line":679},10,[465,681,682],{"class":548},"  ]",[465,684,648],{"class":544},[465,686,688,691],{"class":467,"line":687},11,[465,689,690],{"class":544},"}",[465,692,693],{"class":548},")\n",[413,695,696],{},"That's it. The plugin automatically:",[698,699,700,708],"ul",{},[701,702,703,704,707],"li",{},"Initializes the logger at compile time (no ",[417,705,706],{},"initLogger()"," call needed)",[701,709,710,711,714],{},"Strips ",[417,712,713],{},"log.debug()"," calls from production builds",[443,716,718],{"id":717},"features","Features",[720,721],"vite-strip-build",{},[413,723,724,725,727,728,731,732,734,735,738],{},"The plugin transforms your source at build time — ",[417,726,713],{}," calls are deleted from the output, ",[417,729,730],{},"__source: 'file:line'"," is injected into object-form log calls, and ",[417,733,706],{}," is wired in via Vite's ",[417,736,737],{},"define"," hook so you never have to call it yourself.",[447,740,742],{"id":741},"auto-initialization","Auto-initialization",[413,744,745,746,748,749,752,753,752,756,752,759,752,762,765,766,769,770,752,773,765,776,779,780,782],{},"The plugin injects logger configuration at compile time via Vite's ",[417,747,737],{}," hook. The ",[417,750,751],{},"service",", ",[417,754,755],{},"environment",[417,757,758],{},"pretty",[417,760,761],{},"silent",[417,763,764],{},"enabled",", and ",[417,767,768],{},"sampling"," options are serialized and injected at build time, so ",[417,771,772],{},"log",[417,774,775],{},"createLogger()",[417,777,778],{},"createRequestLogger()"," work immediately without an ",[417,781,706],{}," call.",[447,784,786],{"id":785},"debug-stripping","Debug stripping",[413,788,789,790,792],{},"By default, all ",[417,791,713],{}," calls are removed from production builds. This is a compile-time transformation, the calls are completely eliminated from the output, not just silenced.",[455,794,796],{"className":531,"code":795,"filename":528,"language":533,"meta":461,"style":461},"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",[417,797,798,807,822,828,833,837,842,847,851,856,861],{"__ignoreMap":461},[465,799,800,803,805],{"class":467,"line":468},[465,801,802],{"class":600},"evlog",[465,804,603],{"class":548},[465,806,606],{"class":544},[465,808,809,812,814,816,818,820],{"class":467,"line":567},[465,810,811],{"class":612},"  service",[465,813,616],{"class":544},[465,815,558],{"class":544},[465,817,642],{"class":474},[465,819,645],{"class":544},[465,821,648],{"class":544},[465,823,824],{"class":467,"line":584},[465,825,827],{"class":826},"sHwdD","  \u002F\u002F Default: strip debug logs in production builds\n",[465,829,830],{"class":467,"line":591},[465,831,832],{"class":826},"  \u002F\u002F strip: ['debug'],\n",[465,834,835],{"class":467,"line":609},[465,836,588],{"emptyLinePlaceholder":587},[465,838,839],{"class":467,"line":622},[465,840,841],{"class":826},"  \u002F\u002F Strip debug and info in production:\n",[465,843,844],{"class":467,"line":632},[465,845,846],{"class":826},"  \u002F\u002F strip: ['debug', 'info'],\n",[465,848,849],{"class":467,"line":651},[465,850,588],{"emptyLinePlaceholder":587},[465,852,853],{"class":467,"line":668},[465,854,855],{"class":826},"  \u002F\u002F Disable stripping:\n",[465,857,858],{"class":467,"line":679},[465,859,860],{"class":826},"  \u002F\u002F strip: [],\n",[465,862,863,865],{"class":467,"line":687},[465,864,690],{"class":544},[465,866,693],{"class":548},[413,868,869,870,873,874,877],{},"Stripping only activates during ",[417,871,872],{},"vite build"," (not ",[417,875,876],{},"vite dev",").",[447,879,881],{"id":880},"source-location-injection","Source location injection",[413,883,884,885,887],{},"When enabled, the plugin injects ",[417,886,730],{}," into object-form log calls so you know exactly which file and line produced each log entry.",[455,889,891],{"className":531,"code":890,"filename":528,"language":533,"meta":461,"style":461},"evlog({\n  service: 'my-api',\n  sourceLocation: true,      \u002F\u002F Always inject\n  \u002F\u002F sourceLocation: 'dev',  \u002F\u002F Only in development\n})\n",[417,892,893,901,915,932,940],{"__ignoreMap":461},[465,894,895,897,899],{"class":467,"line":468},[465,896,802],{"class":600},[465,898,603],{"class":548},[465,900,606],{"class":544},[465,902,903,905,907,909,911,913],{"class":467,"line":567},[465,904,811],{"class":612},[465,906,616],{"class":544},[465,908,558],{"class":544},[465,910,642],{"class":474},[465,912,645],{"class":544},[465,914,648],{"class":544},[465,916,917,920,922,926,929],{"class":467,"line":584},[465,918,919],{"class":612},"  sourceLocation",[465,921,616],{"class":544},[465,923,925],{"class":924},"sfNiH"," true",[465,927,928],{"class":544},",",[465,930,931],{"class":826},"      \u002F\u002F Always inject\n",[465,933,934,937],{"class":467,"line":591},[465,935,936],{"class":826},"  \u002F\u002F sourceLocation: 'dev',",[465,938,939],{"class":826},"  \u002F\u002F Only in development\n",[465,941,942,944],{"class":467,"line":609},[465,943,690],{"class":544},[465,945,693],{"class":548},[447,947,949],{"id":948},"auto-imports-opt-in","Auto-imports (opt-in)",[413,951,952,953,752,955,752,958,961],{},"Automatically detect and import evlog symbols (",[417,954,772],{},[417,956,957],{},"createEvlogError",[417,959,960],{},"parseError",", etc.) without manual import statements. Disabled by default.",[455,963,965],{"className":531,"code":964,"filename":528,"language":533,"meta":461,"style":461},"evlog({\n  service: 'my-api',\n  autoImports: true,\n})\n",[417,966,967,975,989,1000],{"__ignoreMap":461},[465,968,969,971,973],{"class":467,"line":468},[465,970,802],{"class":600},[465,972,603],{"class":548},[465,974,606],{"class":544},[465,976,977,979,981,983,985,987],{"class":467,"line":567},[465,978,811],{"class":612},[465,980,616],{"class":544},[465,982,558],{"class":544},[465,984,642],{"class":474},[465,986,645],{"class":544},[465,988,648],{"class":544},[465,990,991,994,996,998],{"class":467,"line":584},[465,992,993],{"class":612},"  autoImports",[465,995,616],{"class":544},[465,997,925],{"class":924},[465,999,648],{"class":544},[465,1001,1002,1004],{"class":467,"line":591},[465,1003,690],{"class":544},[465,1005,693],{"class":548},[413,1007,1008],{},"When enabled, the plugin:",[1010,1011,1012,1015,1021],"ol",{},[701,1013,1014],{},"Scans your code for evlog symbols",[701,1016,1017,1018,1020],{},"Adds the correct ",[417,1019,541],{}," statements automatically",[701,1022,1023,1024,1027],{},"Generates a ",[417,1025,1026],{},".d.ts"," file for TypeScript support",[422,1029,1032,1033,1035,1036,1039,1040,1042,1043,1045,1046,1048],{"color":1030,"icon":1031},"amber","i-lucide-triangle-alert","The auto-imported error constructor is ",[417,1034,957],{},", not ",[417,1037,1038],{},"createError",". This avoids conflicts with framework-native ",[417,1041,1038],{}," (Nuxt, Nitro, h3). The standalone ",[417,1044,1038],{}," from ",[417,1047,802],{}," is still available via explicit import.",[447,1050,1052],{"id":1051},"client-side-injection","Client-side injection",[413,1054,1055,1056,1059,1060,1063,1064,752,1067,1070],{},"When the ",[417,1057,1058],{},"client"," option is provided, the plugin injects a ",[417,1061,1062],{},"\u003Cscript>"," tag into HTML pages that initializes the client-side logger. This enables ",[417,1065,1066],{},"log.info()",[417,1068,1069],{},"log.error()",", etc. in browser code.",[455,1072,1074],{"className":531,"code":1073,"filename":528,"language":533,"meta":461,"style":461},"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",[417,1075,1076,1084,1098,1108,1120,1129,1140,1156,1161,1166],{"__ignoreMap":461},[465,1077,1078,1080,1082],{"class":467,"line":468},[465,1079,802],{"class":600},[465,1081,603],{"class":548},[465,1083,606],{"class":544},[465,1085,1086,1088,1090,1092,1094,1096],{"class":467,"line":567},[465,1087,811],{"class":612},[465,1089,616],{"class":544},[465,1091,558],{"class":544},[465,1093,642],{"class":474},[465,1095,645],{"class":544},[465,1097,648],{"class":544},[465,1099,1100,1103,1105],{"class":467,"line":584},[465,1101,1102],{"class":612},"  client",[465,1104,616],{"class":544},[465,1106,1107],{"class":544}," {\n",[465,1109,1110,1113,1115,1118],{"class":467,"line":591},[465,1111,1112],{"class":612},"    console",[465,1114,616],{"class":544},[465,1116,1117],{"class":924}," false",[465,1119,648],{"class":544},[465,1121,1122,1125,1127],{"class":467,"line":609},[465,1123,1124],{"class":612},"    transport",[465,1126,616],{"class":544},[465,1128,1107],{"class":544},[465,1130,1131,1134,1136,1138],{"class":467,"line":622},[465,1132,1133],{"class":612},"      enabled",[465,1135,616],{"class":544},[465,1137,925],{"class":924},[465,1139,648],{"class":544},[465,1141,1142,1145,1147,1149,1152,1154],{"class":467,"line":632},[465,1143,1144],{"class":612},"      endpoint",[465,1146,616],{"class":544},[465,1148,558],{"class":544},[465,1150,1151],{"class":474},"\u002Fapi\u002F_evlog\u002Fingest",[465,1153,645],{"class":544},[465,1155,648],{"class":544},[465,1157,1158],{"class":467,"line":651},[465,1159,1160],{"class":544},"    },\n",[465,1162,1163],{"class":467,"line":668},[465,1164,1165],{"class":544},"  },\n",[465,1167,1168,1170],{"class":467,"line":679},[465,1169,690],{"class":544},[465,1171,693],{"class":548},[443,1173,170],{"id":1174},"configuration",[1176,1177,1178,1197],"table",{},[1179,1180,1181],"thead",{},[1182,1183,1184,1188,1191,1194],"tr",{},[1185,1186,1187],"th",{},"Option",[1185,1189,1190],{},"Type",[1185,1192,1193],{},"Default",[1185,1195,1196],{},"Description",[1198,1199,1200,1220,1236,1256,1274,1291,1310,1328,1346,1369],"tbody",{},[1182,1201,1202,1207,1212,1217],{},[1203,1204,1205],"td",{},[417,1206,751],{},[1203,1208,1209],{},[417,1210,1211],{},"string",[1203,1213,1214],{},[417,1215,1216],{},"'app'",[1203,1218,1219],{},"Service name in logs",[1182,1221,1222,1226,1230,1233],{},[1203,1223,1224],{},[417,1225,755],{},[1203,1227,1228],{},[417,1229,1211],{},[1203,1231,1232],{},"Auto-detected",[1203,1234,1235],{},"Environment name",[1182,1237,1238,1242,1247,1253],{},[1203,1239,1240],{},[417,1241,758],{},[1203,1243,1244],{},[417,1245,1246],{},"boolean",[1203,1248,1249,1252],{},[417,1250,1251],{},"true"," in dev",[1203,1254,1255],{},"Pretty print logs",[1182,1257,1258,1262,1266,1271],{},[1203,1259,1260],{},[417,1261,761],{},[1203,1263,1264],{},[417,1265,1246],{},[1203,1267,1268],{},[417,1269,1270],{},"false",[1203,1272,1273],{},"Suppress console output",[1182,1275,1276,1280,1284,1288],{},[1203,1277,1278],{},[417,1279,764],{},[1203,1281,1282],{},[417,1283,1246],{},[1203,1285,1286],{},[417,1287,1251],{},[1203,1289,1290],{},"Enable\u002Fdisable all logging",[1182,1292,1293,1297,1302,1307],{},[1203,1294,1295],{},[417,1296,436],{},[1203,1298,1299],{},[417,1300,1301],{},"LogLevel[]",[1203,1303,1304],{},[417,1305,1306],{},"['debug']",[1203,1308,1309],{},"Log levels to remove from production builds",[1182,1311,1312,1316,1321,1325],{},[1203,1313,1314],{},[417,1315,440],{},[1203,1317,1318],{},[417,1319,1320],{},"boolean | 'dev'",[1203,1322,1323],{},[417,1324,1270],{},[1203,1326,1327],{},"Inject source file:line into log calls",[1182,1329,1330,1335,1339,1343],{},[1203,1331,1332],{},[417,1333,1334],{},"autoImports",[1203,1336,1337],{},[417,1338,1246],{},[1203,1340,1341],{},[417,1342,1270],{},[1203,1344,1345],{},"Auto-import evlog symbols",[1182,1347,1348,1352,1357,1360],{},[1203,1349,1350],{},[417,1351,1058],{},[1203,1353,1354],{},[417,1355,1356],{},"object",[1203,1358,1359],{},"—",[1203,1361,1362,1363,752,1366,674],{},"Client-side injection config (",[417,1364,1365],{},"console",[417,1367,1368],{},"transport",[1182,1370,1371,1375,1379,1381],{},[1203,1372,1373],{},[417,1374,768],{},[1203,1376,1377],{},[417,1378,1356],{},[1203,1380,1359],{},[1203,1382,1383],{},"Head\u002Ftail sampling rates",[443,1385,1387],{"id":1386},"nuxt-integration","Nuxt Integration",[413,1389,1390,1391,437,1393,1395,1396,616],{},"The Nuxt module exposes ",[417,1392,436],{},[417,1394,440],{}," directly in ",[417,1397,1398],{},"nuxt.config.ts",[455,1400,1402],{"className":531,"code":1401,"filename":1398,"language":533,"meta":461,"style":461},"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",[417,1403,1404,1417,1438,1447,1471,1494,1513,1517],{"__ignoreMap":461},[465,1405,1406,1408,1410,1413,1415],{"class":467,"line":468},[465,1407,594],{"class":540},[465,1409,597],{"class":540},[465,1411,1412],{"class":600}," defineNuxtConfig",[465,1414,603],{"class":548},[465,1416,606],{"class":544},[465,1418,1419,1422,1424,1427,1429,1431,1433,1436],{"class":467,"line":567},[465,1420,1421],{"class":612},"  modules",[465,1423,616],{"class":544},[465,1425,1426],{"class":548}," [",[465,1428,645],{"class":544},[465,1430,432],{"class":474},[465,1432,645],{"class":544},[465,1434,1435],{"class":548},"]",[465,1437,648],{"class":544},[465,1439,1440,1443,1445],{"class":467,"line":584},[465,1441,1442],{"class":612},"  evlog",[465,1444,616],{"class":544},[465,1446,1107],{"class":544},[465,1448,1449,1452,1454,1456,1459,1461,1463,1466,1468],{"class":467,"line":591},[465,1450,1451],{"class":612},"    env",[465,1453,616],{"class":544},[465,1455,545],{"class":544},[465,1457,1458],{"class":612}," service",[465,1460,616],{"class":544},[465,1462,558],{"class":544},[465,1464,1465],{"class":474},"my-app",[465,1467,645],{"class":544},[465,1469,1470],{"class":544}," },\n",[465,1472,1473,1476,1478,1480,1482,1485,1487,1489,1491],{"class":467,"line":609},[465,1474,1475],{"class":612},"    strip",[465,1477,616],{"class":544},[465,1479,1426],{"class":548},[465,1481,645],{"class":544},[465,1483,1484],{"class":474},"debug",[465,1486,645],{"class":544},[465,1488,1435],{"class":548},[465,1490,928],{"class":544},[465,1492,1493],{"class":826},"           \u002F\u002F Default\n",[465,1495,1496,1499,1501,1503,1506,1508,1510],{"class":467,"line":622},[465,1497,1498],{"class":612},"    sourceLocation",[465,1500,616],{"class":544},[465,1502,558],{"class":544},[465,1504,1505],{"class":474},"dev",[465,1507,645],{"class":544},[465,1509,928],{"class":544},[465,1511,1512],{"class":826},"      \u002F\u002F Inject in dev only\n",[465,1514,1515],{"class":467,"line":632},[465,1516,1165],{"class":544},[465,1518,1519,1521],{"class":467,"line":651},[465,1520,690],{"class":544},[465,1522,693],{"class":548},[443,1524,1526],{"id":1525},"vite-compatibility","Vite Compatibility",[413,1528,1529,1530,1533,1534,1537,1538,437,1541,1544],{},"The plugin supports ",[426,1531,1532],{},"Vite 7+"," and is optimized for ",[426,1535,1536],{},"Vite 8"," (Rolldown). On Vite 8, transform hooks use Rolldown-native ",[417,1539,1540],{},"filter",[417,1542,1543],{},"moduleType"," for maximum performance, non-matching files are skipped entirely on the Rust side without crossing the JS bridge.",[1546,1547,1548],"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":461,"searchDepth":567,"depth":567,"links":1550},[1551,1556,1563,1564,1565],{"id":445,"depth":567,"text":20,"children":1552},[1553,1554],{"id":449,"depth":584,"text":450},{"id":524,"depth":584,"text":1555},"2. Add to vite.config.ts",{"id":717,"depth":567,"text":718,"children":1557},[1558,1559,1560,1561,1562],{"id":741,"depth":584,"text":742},{"id":785,"depth":584,"text":786},{"id":880,"depth":584,"text":881},{"id":948,"depth":584,"text":949},{"id":1051,"depth":584,"text":1052},{"id":1174,"depth":567,"text":170},{"id":1386,"depth":567,"text":1387},{"id":1525,"depth":567,"text":1526},"Build-time optimizations for any Vite-based framework. Auto-init, debug stripping, source location injection, and optional auto-imports.","md",[1569],{"label":1570,"icon":1571,"to":1572,"color":1573,"variant":1574},"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":1566},"fTEwYzgoQFbwH0Wyzs30hnx0ROwbyqB5CGCcsX1LdpI",[1580,1582],{"title":123,"path":189,"stem":190,"description":1581,"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":1583,"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.",1778327033879]