[{"data":1,"prerenderedAt":2029},["ShallowReactive",2],{"navigation_docs":3,"-logging-simple-logging":301,"-logging-simple-logging-surround":2024},[4,30,75,119,207,271,287],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Getting Started","\u002Fgetting-started","1.getting-started",[9,14,19,24],{"title":10,"path":11,"stem":12,"icon":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-info",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Quick Start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start","i-lucide-zap",{"title":25,"path":26,"stem":27,"icon":28},"Agent Skills","\u002Fgetting-started\u002Fagent-skills","1.getting-started\u002F4.agent-skills","i-lucide-sparkles",false,{"title":31,"path":32,"stem":33,"children":34,"page":29},"Logging","\u002Flogging","2.logging",[35,40,45,50,55,60,65,70],{"title":36,"path":37,"stem":38,"icon":39},"Overview","\u002Flogging\u002Foverview","2.logging\u002F0.overview","i-lucide-list",{"title":41,"path":42,"stem":43,"icon":44},"Simple Logging","\u002Flogging\u002Fsimple-logging","2.logging\u002F1.simple-logging","i-lucide-terminal",{"title":46,"path":47,"stem":48,"icon":49},"Wide Events","\u002Flogging\u002Fwide-events","2.logging\u002F2.wide-events","i-lucide-layers",{"title":51,"path":52,"stem":53,"icon":54},"Structured Errors","\u002Flogging\u002Fstructured-errors","2.logging\u002F3.structured-errors","i-lucide-shield-alert",{"title":56,"path":57,"stem":58,"icon":59},"Client Logging","\u002Flogging\u002Fclient-logging","2.logging\u002F4.client-logging","i-lucide-monitor",{"title":61,"path":62,"stem":63,"icon":64},"AI SDK Integration","\u002Flogging\u002Fai-sdk","2.logging\u002F5.ai-sdk","i-simple-icons-vercel",{"title":66,"path":67,"stem":68,"icon":69},"Better Auth Integration","\u002Flogging\u002Fbetter-auth","2.logging\u002F6.better-auth","i-simple-icons-betterauth",{"title":71,"path":72,"stem":73,"icon":74},"Audit Logs","\u002Flogging\u002Faudit","2.logging\u002F7.audit","i-lucide-shield-check",{"title":76,"path":77,"stem":78,"children":79,"page":29},"Core Concepts","\u002Fcore-concepts","3.core-concepts",[80,85,90,95,100,104,109,114],{"title":81,"path":82,"stem":83,"icon":84},"Lifecycle","\u002Fcore-concepts\u002Flifecycle","3.core-concepts\u002F0.lifecycle","i-lucide-arrow-right-left",{"title":86,"path":87,"stem":88,"icon":89},"Configuration","\u002Fcore-concepts\u002Fconfiguration","3.core-concepts\u002F1.configuration","i-lucide-settings",{"title":91,"path":92,"stem":93,"icon":94},"Sampling","\u002Fcore-concepts\u002Fsampling","3.core-concepts\u002F2.sampling","i-lucide-filter",{"title":96,"path":97,"stem":98,"icon":99},"Typed Fields","\u002Fcore-concepts\u002Ftyped-fields","3.core-concepts\u002F3.typed-fields","i-simple-icons-typescript",{"title":101,"path":102,"stem":103,"icon":74},"Best Practices","\u002Fcore-concepts\u002Fbest-practices","3.core-concepts\u002F4.best-practices",{"title":105,"path":106,"stem":107,"icon":108},"Performance","\u002Fcore-concepts\u002Fperformance","3.core-concepts\u002F5.performance","i-lucide-gauge",{"title":110,"path":111,"stem":112,"icon":113},"Vite Plugin","\u002Fcore-concepts\u002Fvite-plugin","3.core-concepts\u002F6.vite-plugin","i-custom-vite",{"title":115,"path":116,"stem":117,"icon":118},"Auto-Redaction","\u002Fcore-concepts\u002Fredaction","3.core-concepts\u002F7.redaction","i-lucide-eye-off",{"title":120,"path":121,"stem":122,"children":123,"page":29},"Frameworks","\u002Fframeworks","4.frameworks",[124,128,133,138,143,148,153,158,163,168,173,178,183,188,192,197,202],{"title":36,"path":125,"stem":126,"icon":127},"\u002Fframeworks\u002Foverview","4.frameworks\u002F00.overview","i-lucide-layout-grid",{"title":129,"path":130,"stem":131,"icon":132},"Nuxt","\u002Fframeworks\u002Fnuxt","4.frameworks\u002F01.nuxt","i-simple-icons-nuxtdotjs",{"title":134,"path":135,"stem":136,"icon":137},"Next.js","\u002Fframeworks\u002Fnextjs","4.frameworks\u002F02.nextjs","i-simple-icons-nextdotjs",{"title":139,"path":140,"stem":141,"icon":142},"SvelteKit","\u002Fframeworks\u002Fsveltekit","4.frameworks\u002F03.sveltekit","i-simple-icons-svelte",{"title":144,"path":145,"stem":146,"icon":147},"Nitro","\u002Fframeworks\u002Fnitro","4.frameworks\u002F04.nitro","i-custom-nitro",{"title":149,"path":150,"stem":151,"icon":152},"TanStack Start","\u002Fframeworks\u002Ftanstack-start","4.frameworks\u002F05.tanstack-start","i-custom-tanstack",{"title":154,"path":155,"stem":156,"icon":157},"NestJS","\u002Fframeworks\u002Fnestjs","4.frameworks\u002F06.nestjs","i-simple-icons-nestjs",{"title":159,"path":160,"stem":161,"icon":162},"Express","\u002Fframeworks\u002Fexpress","4.frameworks\u002F07.express","i-simple-icons-express",{"title":164,"path":165,"stem":166,"icon":167},"Hono","\u002Fframeworks\u002Fhono","4.frameworks\u002F08.hono","i-simple-icons-hono",{"title":169,"path":170,"stem":171,"icon":172},"Fastify","\u002Fframeworks\u002Ffastify","4.frameworks\u002F09.fastify","i-simple-icons-fastify",{"title":174,"path":175,"stem":176,"icon":177},"Elysia","\u002Fframeworks\u002Felysia","4.frameworks\u002F10.elysia","i-custom-elysia",{"title":179,"path":180,"stem":181,"icon":182},"React Router","\u002Fframeworks\u002Freact-router","4.frameworks\u002F11.react-router","i-custom-reactrouter",{"title":184,"path":185,"stem":186,"icon":187},"Cloudflare Workers","\u002Fframeworks\u002Fcloudflare-workers","4.frameworks\u002F12.cloudflare-workers","i-simple-icons-cloudflare",{"title":189,"path":190,"stem":191,"icon":99},"Standalone","\u002Fframeworks\u002Fstandalone","4.frameworks\u002F13.standalone",{"title":193,"path":194,"stem":195,"icon":196},"Astro","\u002Fframeworks\u002Fastro","4.frameworks\u002F14.astro","i-simple-icons-astro",{"title":198,"path":199,"stem":200,"icon":201},"Custom Integration","\u002Fframeworks\u002Fcustom-integration","4.frameworks\u002F15.custom-integration","i-lucide-puzzle",{"title":203,"path":204,"stem":205,"icon":206},"AWS Lambda","\u002Fframeworks\u002Faws-lambda","4.frameworks\u002F16.aws-lambda","i-custom-lambda",{"title":208,"path":209,"stem":210,"children":211,"page":29},"Adapters","\u002Fadapters","5.adapters",[212,216,221,226,231,236,241,246,251,256,261,266],{"title":36,"path":213,"stem":214,"icon":215},"\u002Fadapters\u002Foverview","5.adapters\u002F1.overview","i-custom-plug",{"title":217,"path":218,"stem":219,"icon":220},"Custom Adapters","\u002Fadapters\u002Fcustom","5.adapters\u002F10.custom","i-lucide-code",{"title":222,"path":223,"stem":224,"icon":225},"Pipeline","\u002Fadapters\u002Fpipeline","5.adapters\u002F11.pipeline","i-lucide-workflow",{"title":227,"path":228,"stem":229,"icon":230},"HTTP","\u002Fadapters\u002Fhttp","5.adapters\u002F12.http","i-lucide-globe",{"title":232,"path":233,"stem":234,"icon":235},"Axiom","\u002Fadapters\u002Faxiom","5.adapters\u002F2.axiom","i-custom-axiom",{"title":237,"path":238,"stem":239,"icon":240},"OTLP","\u002Fadapters\u002Fotlp","5.adapters\u002F3.otlp","i-simple-icons-opentelemetry",{"title":242,"path":243,"stem":244,"icon":245},"PostHog","\u002Fadapters\u002Fposthog","5.adapters\u002F4.posthog","i-simple-icons-posthog",{"title":247,"path":248,"stem":249,"icon":250},"Sentry","\u002Fadapters\u002Fsentry","5.adapters\u002F5.sentry","i-simple-icons-sentry",{"title":252,"path":253,"stem":254,"icon":255},"Better Stack","\u002Fadapters\u002Fbetter-stack","5.adapters\u002F6.better-stack","i-simple-icons-betterstack",{"title":257,"path":258,"stem":259,"icon":260},"File System","\u002Fadapters\u002Ffs","5.adapters\u002F7.fs","i-lucide-hard-drive",{"title":262,"path":263,"stem":264,"icon":265},"Datadog","\u002Fadapters\u002Fdatadog","5.adapters\u002F8.datadog","i-simple-icons-datadog",{"title":267,"path":268,"stem":269,"icon":270},"HyperDX","\u002Fadapters\u002Fhyperdx","5.adapters\u002F9.hyperdx","i-custom-hyperdx",{"title":272,"path":273,"stem":274,"children":275,"page":29},"Enrichers","\u002Fenrichers","6.enrichers",[276,279,283],{"title":36,"path":277,"stem":278,"icon":28},"\u002Fenrichers\u002Foverview","6.enrichers\u002F1.overview",{"title":280,"path":281,"stem":282,"icon":201},"Built-in","\u002Fenrichers\u002Fbuilt-in","6.enrichers\u002F2.built-in",{"title":284,"path":285,"stem":286,"icon":220},"Custom","\u002Fenrichers\u002Fcustom","6.enrichers\u002F3.custom",{"title":288,"path":289,"stem":290,"children":291,"page":29},"NuxtHub","\u002Fnuxthub","7.nuxthub",[292,296],{"title":36,"path":293,"stem":294,"icon":295},"\u002Fnuxthub\u002Foverview","7.nuxthub\u002F1.overview","i-lucide-database",{"title":297,"path":298,"stem":299,"icon":300},"Retention","\u002Fnuxthub\u002Fretention","7.nuxthub\u002F2.retention","i-lucide-clock",{"id":302,"title":41,"body":303,"description":2013,"extension":2014,"links":2015,"meta":2020,"navigation":2021,"path":42,"seo":2022,"stem":43,"__hash__":2023},"docs\u002F2.logging\u002F1.simple-logging.md",{"type":304,"value":305,"toc":1997},"minimark",[306,319,332,337,340,480,490,494,499,502,644,694,698,701,865,922,932,936,1015,1030,1034,1038,1184,1188,1329,1333,1542,1546,1553,1712,1716,1731,1951,1955,1993],[307,308,309,310,314,315,318],"p",{},"The ",[311,312,313],"code",{},"log"," API is the simplest way to use evlog. Each call emits a single structured event, no accumulation, no lifecycle management, no manual ",[311,316,317],{},"emit()",".",[320,321,323,324,326,327,331],"callout",{"color":322,"icon":28},"info","In Nuxt, ",[311,325,313],{}," is ",[328,329,330],"strong",{},"auto-imported",". No import statement needed.",[333,334,336],"h2",{"id":335},"setup","Setup",[307,338,339],{},"For standalone projects (non-Nuxt), initialize once at startup:",[341,342,348],"pre",{"className":343,"code":344,"filename":345,"language":346,"meta":347,"style":347},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { initLogger, log } from 'evlog'\n\ninitLogger({\n  env: { service: 'my-app' },\n})\n\nlog.info('app', 'Server started')\n","src\u002Findex.ts","typescript","",[311,349,350,389,396,409,437,446,451],{"__ignoreMap":347},[351,352,355,359,363,367,370,373,376,379,382,386],"span",{"class":353,"line":354},"line",1,[351,356,358],{"class":357},"s7zQu","import",[351,360,362],{"class":361},"sMK4o"," {",[351,364,366],{"class":365},"sTEyZ"," initLogger",[351,368,369],{"class":361},",",[351,371,372],{"class":365}," log",[351,374,375],{"class":361}," }",[351,377,378],{"class":357}," from",[351,380,381],{"class":361}," '",[351,383,385],{"class":384},"sfazB","evlog",[351,387,388],{"class":361},"'\n",[351,390,392],{"class":353,"line":391},2,[351,393,395],{"emptyLinePlaceholder":394},true,"\n",[351,397,399,403,406],{"class":353,"line":398},3,[351,400,402],{"class":401},"s2Zo4","initLogger",[351,404,405],{"class":365},"(",[351,407,408],{"class":361},"{\n",[351,410,412,416,419,421,424,426,428,431,434],{"class":353,"line":411},4,[351,413,415],{"class":414},"swJcz","  env",[351,417,418],{"class":361},":",[351,420,362],{"class":361},[351,422,423],{"class":414}," service",[351,425,418],{"class":361},[351,427,381],{"class":361},[351,429,430],{"class":384},"my-app",[351,432,433],{"class":361},"'",[351,435,436],{"class":361}," },\n",[351,438,440,443],{"class":353,"line":439},5,[351,441,442],{"class":361},"}",[351,444,445],{"class":365},")\n",[351,447,449],{"class":353,"line":448},6,[351,450,395],{"emptyLinePlaceholder":394},[351,452,454,456,458,460,462,464,467,469,471,473,476,478],{"class":353,"line":453},7,[351,455,313],{"class":365},[351,457,318],{"class":361},[351,459,322],{"class":401},[351,461,405],{"class":365},[351,463,433],{"class":361},[351,465,466],{"class":384},"app",[351,468,433],{"class":361},[351,470,369],{"class":361},[351,472,381],{"class":361},[351,474,475],{"class":384},"Server started",[351,477,433],{"class":361},[351,479,445],{"class":365},[320,481,482,485,486,489],{"color":322,"icon":13},[311,483,484],{},"env.service"," defaults to ",[311,487,488],{},"'app'"," if not specified. Only set it if you want a custom service name.",[333,491,493],{"id":492},"two-call-styles","Two Call Styles",[495,496,498],"h3",{"id":497},"tagged-logs","Tagged Logs",[307,500,501],{},"Pass a tag and a message for quick, readable output:",[341,503,505],{"className":343,"code":504,"filename":345,"language":346,"meta":347,"style":347},"import { log } from 'evlog'\n\nlog.info('auth', 'User logged in')\nlog.warn('cache', 'Cache miss for key user:42')\nlog.error('payment', 'Stripe webhook failed')\nlog.debug('router', 'Matched route \u002Fapi\u002Fcheckout')\n",[311,506,507,525,529,557,586,615],{"__ignoreMap":347},[351,508,509,511,513,515,517,519,521,523],{"class":353,"line":354},[351,510,358],{"class":357},[351,512,362],{"class":361},[351,514,372],{"class":365},[351,516,375],{"class":361},[351,518,378],{"class":357},[351,520,381],{"class":361},[351,522,385],{"class":384},[351,524,388],{"class":361},[351,526,527],{"class":353,"line":391},[351,528,395],{"emptyLinePlaceholder":394},[351,530,531,533,535,537,539,541,544,546,548,550,553,555],{"class":353,"line":398},[351,532,313],{"class":365},[351,534,318],{"class":361},[351,536,322],{"class":401},[351,538,405],{"class":365},[351,540,433],{"class":361},[351,542,543],{"class":384},"auth",[351,545,433],{"class":361},[351,547,369],{"class":361},[351,549,381],{"class":361},[351,551,552],{"class":384},"User logged in",[351,554,433],{"class":361},[351,556,445],{"class":365},[351,558,559,561,563,566,568,570,573,575,577,579,582,584],{"class":353,"line":411},[351,560,313],{"class":365},[351,562,318],{"class":361},[351,564,565],{"class":401},"warn",[351,567,405],{"class":365},[351,569,433],{"class":361},[351,571,572],{"class":384},"cache",[351,574,433],{"class":361},[351,576,369],{"class":361},[351,578,381],{"class":361},[351,580,581],{"class":384},"Cache miss for key user:42",[351,583,433],{"class":361},[351,585,445],{"class":365},[351,587,588,590,592,595,597,599,602,604,606,608,611,613],{"class":353,"line":439},[351,589,313],{"class":365},[351,591,318],{"class":361},[351,593,594],{"class":401},"error",[351,596,405],{"class":365},[351,598,433],{"class":361},[351,600,601],{"class":384},"payment",[351,603,433],{"class":361},[351,605,369],{"class":361},[351,607,381],{"class":361},[351,609,610],{"class":384},"Stripe webhook failed",[351,612,433],{"class":361},[351,614,445],{"class":365},[351,616,617,619,621,624,626,628,631,633,635,637,640,642],{"class":353,"line":448},[351,618,313],{"class":365},[351,620,318],{"class":361},[351,622,623],{"class":401},"debug",[351,625,405],{"class":365},[351,627,433],{"class":361},[351,629,630],{"class":384},"router",[351,632,433],{"class":361},[351,634,369],{"class":361},[351,636,381],{"class":361},[351,638,639],{"class":384},"Matched route \u002Fapi\u002Fcheckout",[351,641,433],{"class":361},[351,643,445],{"class":365},[341,645,650],{"className":646,"code":647,"filename":648,"language":649,"meta":347,"style":347},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","10:23:45.612 [auth] User logged in\n10:23:45.613 [cache] Cache miss for key user:42\n10:23:45.614 ERROR [payment] Stripe webhook failed\n10:23:45.615 [router] Matched route \u002Fapi\u002Fcheckout\n","Output (Pretty)","bash",[311,651,652,661,675,686],{"__ignoreMap":347},[351,653,654,658],{"class":353,"line":354},[351,655,657],{"class":656},"sBMFI","10:23:45.612",[351,659,660],{"class":365}," [auth] User logged in\n",[351,662,663,666,669,672],{"class":353,"line":391},[351,664,665],{"class":656},"10:23:45.613",[351,667,668],{"class":365}," [cache] Cache miss ",[351,670,671],{"class":357},"for",[351,673,674],{"class":365}," key user:42\n",[351,676,677,680,683],{"class":353,"line":398},[351,678,679],{"class":656},"10:23:45.614",[351,681,682],{"class":384}," ERROR",[351,684,685],{"class":365}," [payment] Stripe webhook failed\n",[351,687,688,691],{"class":353,"line":411},[351,689,690],{"class":656},"10:23:45.615",[351,692,693],{"class":365}," [router] Matched route \u002Fapi\u002Fcheckout\n",[495,695,697],{"id":696},"structured-events","Structured Events",[307,699,700],{},"Pass an object for rich, queryable events that flow through the drain pipeline:",[341,702,704],{"className":343,"code":703,"filename":345,"language":346,"meta":347,"style":347},"import { log } from 'evlog'\n\nlog.info({ action: 'user_login', userId: 42, method: 'oauth', provider: 'github' })\nlog.error({ action: 'sync_failed', source: 'postgres', target: 's3', error: 'connection_timeout' })\n",[311,705,706,724,728,796],{"__ignoreMap":347},[351,707,708,710,712,714,716,718,720,722],{"class":353,"line":354},[351,709,358],{"class":357},[351,711,362],{"class":361},[351,713,372],{"class":365},[351,715,375],{"class":361},[351,717,378],{"class":357},[351,719,381],{"class":361},[351,721,385],{"class":384},[351,723,388],{"class":361},[351,725,726],{"class":353,"line":391},[351,727,395],{"emptyLinePlaceholder":394},[351,729,730,732,734,736,738,741,744,746,748,751,753,755,758,760,764,766,769,771,773,776,778,780,783,785,787,790,792,794],{"class":353,"line":398},[351,731,313],{"class":365},[351,733,318],{"class":361},[351,735,322],{"class":401},[351,737,405],{"class":365},[351,739,740],{"class":361},"{",[351,742,743],{"class":414}," action",[351,745,418],{"class":361},[351,747,381],{"class":361},[351,749,750],{"class":384},"user_login",[351,752,433],{"class":361},[351,754,369],{"class":361},[351,756,757],{"class":414}," userId",[351,759,418],{"class":361},[351,761,763],{"class":762},"sbssI"," 42",[351,765,369],{"class":361},[351,767,768],{"class":414}," method",[351,770,418],{"class":361},[351,772,381],{"class":361},[351,774,775],{"class":384},"oauth",[351,777,433],{"class":361},[351,779,369],{"class":361},[351,781,782],{"class":414}," provider",[351,784,418],{"class":361},[351,786,381],{"class":361},[351,788,789],{"class":384},"github",[351,791,433],{"class":361},[351,793,375],{"class":361},[351,795,445],{"class":365},[351,797,798,800,802,804,806,808,810,812,814,817,819,821,824,826,828,831,833,835,838,840,842,845,847,849,852,854,856,859,861,863],{"class":353,"line":411},[351,799,313],{"class":365},[351,801,318],{"class":361},[351,803,594],{"class":401},[351,805,405],{"class":365},[351,807,740],{"class":361},[351,809,743],{"class":414},[351,811,418],{"class":361},[351,813,381],{"class":361},[351,815,816],{"class":384},"sync_failed",[351,818,433],{"class":361},[351,820,369],{"class":361},[351,822,823],{"class":414}," source",[351,825,418],{"class":361},[351,827,381],{"class":361},[351,829,830],{"class":384},"postgres",[351,832,433],{"class":361},[351,834,369],{"class":361},[351,836,837],{"class":414}," target",[351,839,418],{"class":361},[351,841,381],{"class":361},[351,843,844],{"class":384},"s3",[351,846,433],{"class":361},[351,848,369],{"class":361},[351,850,851],{"class":414}," error",[351,853,418],{"class":361},[351,855,381],{"class":361},[351,857,858],{"class":384},"connection_timeout",[351,860,433],{"class":361},[351,862,375],{"class":361},[351,864,445],{"class":365},[341,866,868],{"className":646,"code":867,"filename":648,"language":649,"meta":347,"style":347},"10:23:45.612 INFO [my-app]\n  ├─ action: user_login\n  ├─ userId: 42\n  ├─ method: oauth\n  └─ provider: github\n",[311,869,870,880,891,901,911],{"__ignoreMap":347},[351,871,872,874,877],{"class":353,"line":354},[351,873,657],{"class":656},[351,875,876],{"class":384}," INFO",[351,878,879],{"class":365}," [my-app]\n",[351,881,882,885,888],{"class":353,"line":391},[351,883,884],{"class":656},"  ├─",[351,886,887],{"class":384}," action:",[351,889,890],{"class":384}," user_login\n",[351,892,893,895,898],{"class":353,"line":398},[351,894,884],{"class":656},[351,896,897],{"class":384}," userId:",[351,899,900],{"class":762}," 42\n",[351,902,903,905,908],{"class":353,"line":411},[351,904,884],{"class":656},[351,906,907],{"class":384}," method:",[351,909,910],{"class":384}," oauth\n",[351,912,913,916,919],{"class":353,"line":439},[351,914,915],{"class":656},"  └─",[351,917,918],{"class":384}," provider:",[351,920,921],{"class":384}," github\n",[320,923,924,927,928,931],{"color":322,"icon":13},[328,925,926],{},"Tagged logs"," are optimized for console readability. ",[328,929,930],{},"Structured events"," (object form) produce full wide events that flow through the drain pipeline to external services.",[333,933,935],{"id":934},"log-levels","Log Levels",[937,938,939,955],"table",{},[940,941,942],"thead",{},[943,944,945,949,952],"tr",{},[946,947,948],"th",{},"Level",[946,950,951],{},"Method",[946,953,954],{},"When to use",[956,957,958,973,987,1001],"tbody",{},[943,959,960,965,970],{},[961,962,963],"td",{},[311,964,322],{},[961,966,967],{},[311,968,969],{},"log.info()",[961,971,972],{},"Normal operations: startup, shutdown, successful actions",[943,974,975,979,984],{},[961,976,977],{},[311,978,565],{},[961,980,981],{},[311,982,983],{},"log.warn()",[961,985,986],{},"Unexpected but recoverable situations: cache miss, retry, deprecation",[943,988,989,993,998],{},[961,990,991],{},[311,992,594],{},[961,994,995],{},[311,996,997],{},"log.error()",[961,999,1000],{},"Failures that need attention: API errors, timeouts, invalid state",[943,1002,1003,1007,1012],{},[961,1004,1005],{},[311,1006,623],{},[961,1008,1009],{},[311,1010,1011],{},"log.debug()",[961,1013,1014],{},"Development-only details: SQL queries, intermediate state, routing",[320,1016,1019,1021,1022,1025,1026,1029],{"color":1017,"icon":1018},"warning","i-lucide-lightbulb",[311,1020,1011],{}," calls can be stripped from production builds using the ",[1023,1024,110],"a",{"href":111}," or the Nuxt module's ",[311,1027,1028],{},"strip"," option.",[333,1031,1033],{"id":1032},"common-patterns","Common Patterns",[495,1035,1037],{"id":1036},"application-lifecycle","Application Lifecycle",[341,1039,1041],{"className":343,"code":1040,"filename":345,"language":346,"meta":347,"style":347},"import { log } from 'evlog'\n\nlog.info('app', 'Starting server on port 3000')\nlog.info({ action: 'db_connected', host: 'localhost', database: 'mydb', pool: 10 })\nlog.info('app', 'Ready to accept connections')\n",[311,1042,1043,1061,1065,1092,1157],{"__ignoreMap":347},[351,1044,1045,1047,1049,1051,1053,1055,1057,1059],{"class":353,"line":354},[351,1046,358],{"class":357},[351,1048,362],{"class":361},[351,1050,372],{"class":365},[351,1052,375],{"class":361},[351,1054,378],{"class":357},[351,1056,381],{"class":361},[351,1058,385],{"class":384},[351,1060,388],{"class":361},[351,1062,1063],{"class":353,"line":391},[351,1064,395],{"emptyLinePlaceholder":394},[351,1066,1067,1069,1071,1073,1075,1077,1079,1081,1083,1085,1088,1090],{"class":353,"line":398},[351,1068,313],{"class":365},[351,1070,318],{"class":361},[351,1072,322],{"class":401},[351,1074,405],{"class":365},[351,1076,433],{"class":361},[351,1078,466],{"class":384},[351,1080,433],{"class":361},[351,1082,369],{"class":361},[351,1084,381],{"class":361},[351,1086,1087],{"class":384},"Starting server on port 3000",[351,1089,433],{"class":361},[351,1091,445],{"class":365},[351,1093,1094,1096,1098,1100,1102,1104,1106,1108,1110,1113,1115,1117,1120,1122,1124,1127,1129,1131,1134,1136,1138,1141,1143,1145,1148,1150,1153,1155],{"class":353,"line":411},[351,1095,313],{"class":365},[351,1097,318],{"class":361},[351,1099,322],{"class":401},[351,1101,405],{"class":365},[351,1103,740],{"class":361},[351,1105,743],{"class":414},[351,1107,418],{"class":361},[351,1109,381],{"class":361},[351,1111,1112],{"class":384},"db_connected",[351,1114,433],{"class":361},[351,1116,369],{"class":361},[351,1118,1119],{"class":414}," host",[351,1121,418],{"class":361},[351,1123,381],{"class":361},[351,1125,1126],{"class":384},"localhost",[351,1128,433],{"class":361},[351,1130,369],{"class":361},[351,1132,1133],{"class":414}," database",[351,1135,418],{"class":361},[351,1137,381],{"class":361},[351,1139,1140],{"class":384},"mydb",[351,1142,433],{"class":361},[351,1144,369],{"class":361},[351,1146,1147],{"class":414}," pool",[351,1149,418],{"class":361},[351,1151,1152],{"class":762}," 10",[351,1154,375],{"class":361},[351,1156,445],{"class":365},[351,1158,1159,1161,1163,1165,1167,1169,1171,1173,1175,1177,1180,1182],{"class":353,"line":439},[351,1160,313],{"class":365},[351,1162,318],{"class":361},[351,1164,322],{"class":401},[351,1166,405],{"class":365},[351,1168,433],{"class":361},[351,1170,466],{"class":384},[351,1172,433],{"class":361},[351,1174,369],{"class":361},[351,1176,381],{"class":361},[351,1178,1179],{"class":384},"Ready to accept connections",[351,1181,433],{"class":361},[351,1183,445],{"class":365},[495,1185,1187],{"id":1186},"background-tasks","Background Tasks",[341,1189,1192],{"className":343,"code":1190,"filename":1191,"language":346,"meta":347,"style":347},"import { log } from 'evlog'\n\nlog.info({ action: 'cron_started', job: 'cleanup', schedule: '0 *\u002F6 * * *' })\nlog.info({ action: 'cron_completed', job: 'cleanup', deleted: 42, duration: 1200 })\n","src\u002Fjobs\u002Fcleanup.ts",[311,1193,1194,1212,1216,1271],{"__ignoreMap":347},[351,1195,1196,1198,1200,1202,1204,1206,1208,1210],{"class":353,"line":354},[351,1197,358],{"class":357},[351,1199,362],{"class":361},[351,1201,372],{"class":365},[351,1203,375],{"class":361},[351,1205,378],{"class":357},[351,1207,381],{"class":361},[351,1209,385],{"class":384},[351,1211,388],{"class":361},[351,1213,1214],{"class":353,"line":391},[351,1215,395],{"emptyLinePlaceholder":394},[351,1217,1218,1220,1222,1224,1226,1228,1230,1232,1234,1237,1239,1241,1244,1246,1248,1251,1253,1255,1258,1260,1262,1265,1267,1269],{"class":353,"line":398},[351,1219,313],{"class":365},[351,1221,318],{"class":361},[351,1223,322],{"class":401},[351,1225,405],{"class":365},[351,1227,740],{"class":361},[351,1229,743],{"class":414},[351,1231,418],{"class":361},[351,1233,381],{"class":361},[351,1235,1236],{"class":384},"cron_started",[351,1238,433],{"class":361},[351,1240,369],{"class":361},[351,1242,1243],{"class":414}," job",[351,1245,418],{"class":361},[351,1247,381],{"class":361},[351,1249,1250],{"class":384},"cleanup",[351,1252,433],{"class":361},[351,1254,369],{"class":361},[351,1256,1257],{"class":414}," schedule",[351,1259,418],{"class":361},[351,1261,381],{"class":361},[351,1263,1264],{"class":384},"0 *\u002F6 * * *",[351,1266,433],{"class":361},[351,1268,375],{"class":361},[351,1270,445],{"class":365},[351,1272,1273,1275,1277,1279,1281,1283,1285,1287,1289,1292,1294,1296,1298,1300,1302,1304,1306,1308,1311,1313,1315,1317,1320,1322,1325,1327],{"class":353,"line":411},[351,1274,313],{"class":365},[351,1276,318],{"class":361},[351,1278,322],{"class":401},[351,1280,405],{"class":365},[351,1282,740],{"class":361},[351,1284,743],{"class":414},[351,1286,418],{"class":361},[351,1288,381],{"class":361},[351,1290,1291],{"class":384},"cron_completed",[351,1293,433],{"class":361},[351,1295,369],{"class":361},[351,1297,1243],{"class":414},[351,1299,418],{"class":361},[351,1301,381],{"class":361},[351,1303,1250],{"class":384},[351,1305,433],{"class":361},[351,1307,369],{"class":361},[351,1309,1310],{"class":414}," deleted",[351,1312,418],{"class":361},[351,1314,763],{"class":762},[351,1316,369],{"class":361},[351,1318,1319],{"class":414}," duration",[351,1321,418],{"class":361},[351,1323,1324],{"class":762}," 1200",[351,1326,375],{"class":361},[351,1328,445],{"class":365},[495,1330,1332],{"id":1331},"utility-functions","Utility Functions",[341,1334,1337],{"className":343,"code":1335,"filename":1336,"language":346,"meta":347,"style":347},"import { log } from 'evlog'\n\nfunction processWebhook(payload: WebhookPayload) {\n  log.info({ action: 'webhook_received', type: payload.type, source: payload.source })\n\n  if (!isValid(payload)) {\n    log.warn({ action: 'webhook_invalid', type: payload.type, reason: 'missing_signature' })\n    return\n  }\n}\n","src\u002Futils\u002Fwebhook.ts",[311,1338,1339,1357,1361,1387,1443,1447,1470,1524,1530,1536],{"__ignoreMap":347},[351,1340,1341,1343,1345,1347,1349,1351,1353,1355],{"class":353,"line":354},[351,1342,358],{"class":357},[351,1344,362],{"class":361},[351,1346,372],{"class":365},[351,1348,375],{"class":361},[351,1350,378],{"class":357},[351,1352,381],{"class":361},[351,1354,385],{"class":384},[351,1356,388],{"class":361},[351,1358,1359],{"class":353,"line":391},[351,1360,395],{"emptyLinePlaceholder":394},[351,1362,1363,1367,1370,1372,1376,1378,1381,1384],{"class":353,"line":398},[351,1364,1366],{"class":1365},"spNyl","function",[351,1368,1369],{"class":401}," processWebhook",[351,1371,405],{"class":361},[351,1373,1375],{"class":1374},"sHdIc","payload",[351,1377,418],{"class":361},[351,1379,1380],{"class":656}," WebhookPayload",[351,1382,1383],{"class":361},")",[351,1385,1386],{"class":361}," {\n",[351,1388,1389,1392,1394,1396,1398,1400,1402,1404,1406,1409,1411,1413,1416,1418,1421,1423,1426,1428,1430,1432,1434,1436,1439,1441],{"class":353,"line":411},[351,1390,1391],{"class":365},"  log",[351,1393,318],{"class":361},[351,1395,322],{"class":401},[351,1397,405],{"class":414},[351,1399,740],{"class":361},[351,1401,743],{"class":414},[351,1403,418],{"class":361},[351,1405,381],{"class":361},[351,1407,1408],{"class":384},"webhook_received",[351,1410,433],{"class":361},[351,1412,369],{"class":361},[351,1414,1415],{"class":414}," type",[351,1417,418],{"class":361},[351,1419,1420],{"class":365}," payload",[351,1422,318],{"class":361},[351,1424,1425],{"class":365},"type",[351,1427,369],{"class":361},[351,1429,823],{"class":414},[351,1431,418],{"class":361},[351,1433,1420],{"class":365},[351,1435,318],{"class":361},[351,1437,1438],{"class":365},"source",[351,1440,375],{"class":361},[351,1442,445],{"class":414},[351,1444,1445],{"class":353,"line":439},[351,1446,395],{"emptyLinePlaceholder":394},[351,1448,1449,1452,1455,1458,1461,1463,1465,1468],{"class":353,"line":448},[351,1450,1451],{"class":357},"  if",[351,1453,1454],{"class":414}," (",[351,1456,1457],{"class":361},"!",[351,1459,1460],{"class":401},"isValid",[351,1462,405],{"class":414},[351,1464,1375],{"class":365},[351,1466,1467],{"class":414},")) ",[351,1469,408],{"class":361},[351,1471,1472,1475,1477,1479,1481,1483,1485,1487,1489,1492,1494,1496,1498,1500,1502,1504,1506,1508,1511,1513,1515,1518,1520,1522],{"class":353,"line":453},[351,1473,1474],{"class":365},"    log",[351,1476,318],{"class":361},[351,1478,565],{"class":401},[351,1480,405],{"class":414},[351,1482,740],{"class":361},[351,1484,743],{"class":414},[351,1486,418],{"class":361},[351,1488,381],{"class":361},[351,1490,1491],{"class":384},"webhook_invalid",[351,1493,433],{"class":361},[351,1495,369],{"class":361},[351,1497,1415],{"class":414},[351,1499,418],{"class":361},[351,1501,1420],{"class":365},[351,1503,318],{"class":361},[351,1505,1425],{"class":365},[351,1507,369],{"class":361},[351,1509,1510],{"class":414}," reason",[351,1512,418],{"class":361},[351,1514,381],{"class":361},[351,1516,1517],{"class":384},"missing_signature",[351,1519,433],{"class":361},[351,1521,375],{"class":361},[351,1523,445],{"class":414},[351,1525,1527],{"class":353,"line":1526},8,[351,1528,1529],{"class":357},"    return\n",[351,1531,1533],{"class":353,"line":1532},9,[351,1534,1535],{"class":361},"  }\n",[351,1537,1539],{"class":353,"line":1538},10,[351,1540,1541],{"class":361},"}\n",[333,1543,1545],{"id":1544},"drain-integration","Drain Integration",[307,1547,1548,1549,1552],{},"When using the object form, events are sent through the ",[1023,1550,1551],{"href":213},"drain pipeline"," just like wide events:",[341,1554,1556],{"className":343,"code":1555,"filename":345,"language":346,"meta":347,"style":347},"import { initLogger, log } from 'evlog'\nimport { createAxiomDrain } from 'evlog\u002Faxiom'\n\ninitLogger({\n  env: { service: 'my-app' },\n  drain: createAxiomDrain(),\n})\n\nlog.info({ action: 'deploy', version: '1.2.3', region: 'us-east-1' })\n",[311,1557,1558,1580,1600,1604,1612,1632,1647,1653,1657],{"__ignoreMap":347},[351,1559,1560,1562,1564,1566,1568,1570,1572,1574,1576,1578],{"class":353,"line":354},[351,1561,358],{"class":357},[351,1563,362],{"class":361},[351,1565,366],{"class":365},[351,1567,369],{"class":361},[351,1569,372],{"class":365},[351,1571,375],{"class":361},[351,1573,378],{"class":357},[351,1575,381],{"class":361},[351,1577,385],{"class":384},[351,1579,388],{"class":361},[351,1581,1582,1584,1586,1589,1591,1593,1595,1598],{"class":353,"line":391},[351,1583,358],{"class":357},[351,1585,362],{"class":361},[351,1587,1588],{"class":365}," createAxiomDrain",[351,1590,375],{"class":361},[351,1592,378],{"class":357},[351,1594,381],{"class":361},[351,1596,1597],{"class":384},"evlog\u002Faxiom",[351,1599,388],{"class":361},[351,1601,1602],{"class":353,"line":398},[351,1603,395],{"emptyLinePlaceholder":394},[351,1605,1606,1608,1610],{"class":353,"line":411},[351,1607,402],{"class":401},[351,1609,405],{"class":365},[351,1611,408],{"class":361},[351,1613,1614,1616,1618,1620,1622,1624,1626,1628,1630],{"class":353,"line":439},[351,1615,415],{"class":414},[351,1617,418],{"class":361},[351,1619,362],{"class":361},[351,1621,423],{"class":414},[351,1623,418],{"class":361},[351,1625,381],{"class":361},[351,1627,430],{"class":384},[351,1629,433],{"class":361},[351,1631,436],{"class":361},[351,1633,1634,1637,1639,1641,1644],{"class":353,"line":448},[351,1635,1636],{"class":414},"  drain",[351,1638,418],{"class":361},[351,1640,1588],{"class":401},[351,1642,1643],{"class":365},"()",[351,1645,1646],{"class":361},",\n",[351,1648,1649,1651],{"class":353,"line":453},[351,1650,442],{"class":361},[351,1652,445],{"class":365},[351,1654,1655],{"class":353,"line":1526},[351,1656,395],{"emptyLinePlaceholder":394},[351,1658,1659,1661,1663,1665,1667,1669,1671,1673,1675,1678,1680,1682,1685,1687,1689,1692,1694,1696,1699,1701,1703,1706,1708,1710],{"class":353,"line":1532},[351,1660,313],{"class":365},[351,1662,318],{"class":361},[351,1664,322],{"class":401},[351,1666,405],{"class":365},[351,1668,740],{"class":361},[351,1670,743],{"class":414},[351,1672,418],{"class":361},[351,1674,381],{"class":361},[351,1676,1677],{"class":384},"deploy",[351,1679,433],{"class":361},[351,1681,369],{"class":361},[351,1683,1684],{"class":414}," version",[351,1686,418],{"class":361},[351,1688,381],{"class":361},[351,1690,1691],{"class":384},"1.2.3",[351,1693,433],{"class":361},[351,1695,369],{"class":361},[351,1697,1698],{"class":414}," region",[351,1700,418],{"class":361},[351,1702,381],{"class":361},[351,1704,1705],{"class":384},"us-east-1",[351,1707,433],{"class":361},[351,1709,375],{"class":361},[351,1711,445],{"class":365},[333,1713,1715],{"id":1714},"when-to-upgrade-to-createlogger","When to Upgrade to createLogger",[307,1717,1718,1719,1721,1722,1725,1726,418],{},"Use ",[311,1720,313],{}," when each event is self-contained. When you need to ",[328,1723,1724],{},"accumulate context"," across multiple steps of an operation, switch to ",[1023,1727,1728],{"href":47},[311,1729,1730],{},"createLogger",[341,1732,1735],{"className":343,"code":1733,"filename":1734,"language":346,"meta":347,"style":347},"import { log, createLogger } from 'evlog'\n\n\u002F\u002F log: each call is independent\nlog.info({ action: 'sync_started', source: 'postgres' })\nlog.info({ action: 'sync_completed', records: 150 })\n\n\u002F\u002F createLogger: accumulate context, emit once\nconst syncLog = createLogger({ source: 'postgres' })\nsyncLog.set({ records: 150 })\nsyncLog.set({ status: 'complete' })\nsyncLog.emit()\n","scripts\u002Fsync-data.ts",[311,1736,1737,1760,1764,1770,1809,1846,1850,1855,1886,1910,1938],{"__ignoreMap":347},[351,1738,1739,1741,1743,1745,1747,1750,1752,1754,1756,1758],{"class":353,"line":354},[351,1740,358],{"class":357},[351,1742,362],{"class":361},[351,1744,372],{"class":365},[351,1746,369],{"class":361},[351,1748,1749],{"class":365}," createLogger",[351,1751,375],{"class":361},[351,1753,378],{"class":357},[351,1755,381],{"class":361},[351,1757,385],{"class":384},[351,1759,388],{"class":361},[351,1761,1762],{"class":353,"line":391},[351,1763,395],{"emptyLinePlaceholder":394},[351,1765,1766],{"class":353,"line":398},[351,1767,1769],{"class":1768},"sHwdD","\u002F\u002F log: each call is independent\n",[351,1771,1772,1774,1776,1778,1780,1782,1784,1786,1788,1791,1793,1795,1797,1799,1801,1803,1805,1807],{"class":353,"line":411},[351,1773,313],{"class":365},[351,1775,318],{"class":361},[351,1777,322],{"class":401},[351,1779,405],{"class":365},[351,1781,740],{"class":361},[351,1783,743],{"class":414},[351,1785,418],{"class":361},[351,1787,381],{"class":361},[351,1789,1790],{"class":384},"sync_started",[351,1792,433],{"class":361},[351,1794,369],{"class":361},[351,1796,823],{"class":414},[351,1798,418],{"class":361},[351,1800,381],{"class":361},[351,1802,830],{"class":384},[351,1804,433],{"class":361},[351,1806,375],{"class":361},[351,1808,445],{"class":365},[351,1810,1811,1813,1815,1817,1819,1821,1823,1825,1827,1830,1832,1834,1837,1839,1842,1844],{"class":353,"line":439},[351,1812,313],{"class":365},[351,1814,318],{"class":361},[351,1816,322],{"class":401},[351,1818,405],{"class":365},[351,1820,740],{"class":361},[351,1822,743],{"class":414},[351,1824,418],{"class":361},[351,1826,381],{"class":361},[351,1828,1829],{"class":384},"sync_completed",[351,1831,433],{"class":361},[351,1833,369],{"class":361},[351,1835,1836],{"class":414}," records",[351,1838,418],{"class":361},[351,1840,1841],{"class":762}," 150",[351,1843,375],{"class":361},[351,1845,445],{"class":365},[351,1847,1848],{"class":353,"line":448},[351,1849,395],{"emptyLinePlaceholder":394},[351,1851,1852],{"class":353,"line":453},[351,1853,1854],{"class":1768},"\u002F\u002F createLogger: accumulate context, emit once\n",[351,1856,1857,1860,1863,1866,1868,1870,1872,1874,1876,1878,1880,1882,1884],{"class":353,"line":1526},[351,1858,1859],{"class":1365},"const",[351,1861,1862],{"class":365}," syncLog ",[351,1864,1865],{"class":361},"=",[351,1867,1749],{"class":401},[351,1869,405],{"class":365},[351,1871,740],{"class":361},[351,1873,823],{"class":414},[351,1875,418],{"class":361},[351,1877,381],{"class":361},[351,1879,830],{"class":384},[351,1881,433],{"class":361},[351,1883,375],{"class":361},[351,1885,445],{"class":365},[351,1887,1888,1891,1893,1896,1898,1900,1902,1904,1906,1908],{"class":353,"line":1532},[351,1889,1890],{"class":365},"syncLog",[351,1892,318],{"class":361},[351,1894,1895],{"class":401},"set",[351,1897,405],{"class":365},[351,1899,740],{"class":361},[351,1901,1836],{"class":414},[351,1903,418],{"class":361},[351,1905,1841],{"class":762},[351,1907,375],{"class":361},[351,1909,445],{"class":365},[351,1911,1912,1914,1916,1918,1920,1922,1925,1927,1929,1932,1934,1936],{"class":353,"line":1538},[351,1913,1890],{"class":365},[351,1915,318],{"class":361},[351,1917,1895],{"class":401},[351,1919,405],{"class":365},[351,1921,740],{"class":361},[351,1923,1924],{"class":414}," status",[351,1926,418],{"class":361},[351,1928,381],{"class":361},[351,1930,1931],{"class":384},"complete",[351,1933,433],{"class":361},[351,1935,375],{"class":361},[351,1937,445],{"class":365},[351,1939,1941,1943,1945,1948],{"class":353,"line":1940},11,[351,1942,1890],{"class":365},[351,1944,318],{"class":361},[351,1946,1947],{"class":401},"emit",[351,1949,1950],{"class":365},"()\n",[333,1952,1954],{"id":1953},"next-steps","Next Steps",[1956,1957,1958,1964,1980,1988],"ul",{},[1959,1960,1961,1963],"li",{},[1023,1962,46],{"href":47},": Accumulate context and emit comprehensive events",[1959,1965,1966,1968,1969,1972,1973,1976,1977],{},[1023,1967,51],{"href":52},": Throw errors with ",[311,1970,1971],{},"why",", ",[311,1974,1975],{},"fix",", and ",[311,1978,1979],{},"link",[1959,1981,1982,1984,1985,1987],{},[1023,1983,86],{"href":87},": All ",[311,1986,402],{}," options",[1959,1989,1990,1992],{},[1023,1991,208],{"href":213},": Send events to Axiom, Sentry, PostHog, and more",[1994,1995,1996],"style",{},"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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":347,"searchDepth":391,"depth":391,"links":1998},[1999,2000,2004,2005,2010,2011,2012],{"id":335,"depth":391,"text":336},{"id":492,"depth":391,"text":493,"children":2001},[2002,2003],{"id":497,"depth":398,"text":498},{"id":696,"depth":398,"text":697},{"id":934,"depth":391,"text":935},{"id":1032,"depth":391,"text":1033,"children":2006},[2007,2008,2009],{"id":1036,"depth":398,"text":1037},{"id":1186,"depth":398,"text":1187},{"id":1331,"depth":398,"text":1332},{"id":1544,"depth":391,"text":1545},{"id":1714,"depth":391,"text":1715},{"id":1953,"depth":391,"text":1954},"Structured logging for everyday use. Replace console.log with log.info, log.error, log.warn, and log.debug. Fire-and-forget events with pretty output in dev and JSON in production.","md",[2016,2019],{"label":46,"icon":49,"to":47,"color":2017,"variant":2018},"neutral","subtle",{"label":86,"icon":89,"to":87,"color":2017,"variant":2018},{},{"icon":44},{"title":41,"description":2013},"4Cg68334qiOW89KKBf-1LIs_xQv9rMK9_7OJqYebeV4",[2025,2027],{"title":36,"path":37,"stem":38,"description":2026,"icon":39,"children":-1},"evlog gives you three ways to log. Simple one-liners, wide events that accumulate context, and auto-managed request logging. Choose the right one for your use case.",{"title":46,"path":47,"stem":48,"description":2028,"icon":49,"children":-1},"Accumulate context over any unit of work and emit a single comprehensive event. Works for HTTP requests, scripts, background jobs, queue workers, and workflows.",1777047256516]