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