[{"data":1,"prerenderedAt":1394},["ShallowReactive",2],{"docs-surround-\u002Fdocs\u002Fconfiguration":3,"content-query-dx0x1ipn7j":10},[4,7],{"_path":5,"title":6},"\u002Fdocs\u002Flog-ingestion","Log Ingestion",{"_path":8,"title":9},"\u002Fdocs\u002Fapi-reference","API Reference",{"_path":11,"_dir":12,"_draft":13,"_partial":13,"_locale":14,"title":15,"description":16,"body":17,"_type":1388,"_id":1389,"_source":1390,"_file":1391,"_stem":1392,"_extension":1393},"\u002Fdocs\u002Fconfiguration","docs",false,"","Configuration","Full reference for all LumberConfig options.",{"type":18,"children":19,"toc":1373},"root",[20,28,40,54,90,215,221,242,264,292,296,313,347,373,376,394,414,438,441,459,464,478,486,732,746,846,854,1032,1035,1053,1064,1100,1114,1121,1211,1225,1367],{"type":21,"tag":22,"props":23,"children":25},"element","h1",{"id":24},"configuration",[26],{"type":27,"value":15},"text",{"type":21,"tag":29,"props":30,"children":32},"h2",{"id":31},"lumberconfigoptions",[33],{"type":21,"tag":34,"props":35,"children":37},"code",{"className":36},[],[38],{"type":27,"value":39},"lumber.config(options)",{"type":21,"tag":41,"props":42,"children":43},"p",{},[44,46,52],{"type":27,"value":45},"Call once at application startup, before any logging. Calling a log method before ",{"type":21,"tag":34,"props":47,"children":49},{"className":48},[],[50],{"type":27,"value":51},"lumber.config()",{"type":27,"value":53}," throws.",{"type":21,"tag":41,"props":55,"children":56},{},[57,59,64,66,72,74,80,82,88],{"type":27,"value":58},"Calling ",{"type":21,"tag":34,"props":60,"children":62},{"className":61},[],[63],{"type":27,"value":51},{"type":27,"value":65}," again replaces the client. Logs still queued in the previous client keep sending in the background, but ",{"type":21,"tag":34,"props":67,"children":69},{"className":68},[],[70],{"type":27,"value":71},"lumber.flush()",{"type":27,"value":73}," only waits for the new client's queue, so call ",{"type":21,"tag":34,"props":75,"children":77},{"className":76},[],[78],{"type":27,"value":79},"await lumber.flush()",{"type":27,"value":81}," before reconfiguring if you need to be sure they're delivered. Use ",{"type":21,"tag":34,"props":83,"children":85},{"className":84},[],[86],{"type":27,"value":87},"LumberClient",{"type":27,"value":89}," if you need more than one configured instance.",{"type":21,"tag":91,"props":92,"children":96},"pre",{"className":93,"code":94,"language":95,"meta":14,"style":14},"language-typescript shiki shiki-themes github-dark","import lumber from '@infinitetoken\u002Flumber'\n\nlumber.config({\n  apiKey: process.env.LUMBER_API_KEY!,\n  encryptionKey: process.env.LUMBER_ENCRYPTION_KEY!,\n})\n","typescript",[97],{"type":21,"tag":34,"props":98,"children":99},{"__ignoreMap":14},[100,129,139,159,184,206],{"type":21,"tag":101,"props":102,"children":105},"span",{"class":103,"line":104},"line",1,[106,112,118,123],{"type":21,"tag":101,"props":107,"children":109},{"style":108},"--shiki-default:#F97583",[110],{"type":27,"value":111},"import",{"type":21,"tag":101,"props":113,"children":115},{"style":114},"--shiki-default:#E1E4E8",[116],{"type":27,"value":117}," lumber ",{"type":21,"tag":101,"props":119,"children":120},{"style":108},[121],{"type":27,"value":122},"from",{"type":21,"tag":101,"props":124,"children":126},{"style":125},"--shiki-default:#9ECBFF",[127],{"type":27,"value":128}," '@infinitetoken\u002Flumber'\n",{"type":21,"tag":101,"props":130,"children":132},{"class":103,"line":131},2,[133],{"type":21,"tag":101,"props":134,"children":136},{"emptyLinePlaceholder":135},true,[137],{"type":27,"value":138},"\n",{"type":21,"tag":101,"props":140,"children":142},{"class":103,"line":141},3,[143,148,154],{"type":21,"tag":101,"props":144,"children":145},{"style":114},[146],{"type":27,"value":147},"lumber.",{"type":21,"tag":101,"props":149,"children":151},{"style":150},"--shiki-default:#B392F0",[152],{"type":27,"value":153},"config",{"type":21,"tag":101,"props":155,"children":156},{"style":114},[157],{"type":27,"value":158},"({\n",{"type":21,"tag":101,"props":160,"children":162},{"class":103,"line":161},4,[163,168,174,179],{"type":21,"tag":101,"props":164,"children":165},{"style":114},[166],{"type":27,"value":167},"  apiKey: process.env.",{"type":21,"tag":101,"props":169,"children":171},{"style":170},"--shiki-default:#79B8FF",[172],{"type":27,"value":173},"LUMBER_API_KEY",{"type":21,"tag":101,"props":175,"children":176},{"style":108},[177],{"type":27,"value":178},"!",{"type":21,"tag":101,"props":180,"children":181},{"style":114},[182],{"type":27,"value":183},",\n",{"type":21,"tag":101,"props":185,"children":187},{"class":103,"line":186},5,[188,193,198,202],{"type":21,"tag":101,"props":189,"children":190},{"style":114},[191],{"type":27,"value":192},"  encryptionKey: process.env.",{"type":21,"tag":101,"props":194,"children":195},{"style":170},[196],{"type":27,"value":197},"LUMBER_ENCRYPTION_KEY",{"type":21,"tag":101,"props":199,"children":200},{"style":108},[201],{"type":27,"value":178},{"type":21,"tag":101,"props":203,"children":204},{"style":114},[205],{"type":27,"value":183},{"type":21,"tag":101,"props":207,"children":209},{"class":103,"line":208},6,[210],{"type":21,"tag":101,"props":211,"children":212},{"style":114},[213],{"type":27,"value":214},"})\n",{"type":21,"tag":29,"props":216,"children":218},{"id":217},"options-reference",[219],{"type":27,"value":220},"Options reference",{"type":21,"tag":222,"props":223,"children":225},"h3",{"id":224},"apikey-string-required",[226,232,234,240],{"type":21,"tag":34,"props":227,"children":229},{"className":228},[],[230],{"type":27,"value":231},"apiKey",{"type":27,"value":233}," · ",{"type":21,"tag":34,"props":235,"children":237},{"className":236},[],[238],{"type":27,"value":239},"string",{"type":27,"value":241}," · required",{"type":21,"tag":41,"props":243,"children":244},{},[245,247,253,255,262],{"type":27,"value":246},"Bearer token for API authentication: a 32-character hexadecimal string. Create one in the Lumber mobile app on your app's ",{"type":21,"tag":248,"props":249,"children":250},"strong",{},[251],{"type":27,"value":252},"Secrets",{"type":27,"value":254}," screen. It's shown only once. See ",{"type":21,"tag":256,"props":257,"children":259},"a",{"href":258},"\u002Fdocs\u002Fauthentication",[260],{"type":27,"value":261},"Authentication",{"type":27,"value":263},".",{"type":21,"tag":91,"props":265,"children":267},{"className":93,"code":266,"language":95,"meta":14,"style":14},"apiKey: process.env.LUMBER_API_KEY!\n",[268],{"type":21,"tag":34,"props":269,"children":270},{"__ignoreMap":14},[271],{"type":21,"tag":101,"props":272,"children":273},{"class":103,"line":104},[274,278,283,287],{"type":21,"tag":101,"props":275,"children":276},{"style":150},[277],{"type":27,"value":231},{"type":21,"tag":101,"props":279,"children":280},{"style":114},[281],{"type":27,"value":282},": process.env.",{"type":21,"tag":101,"props":284,"children":285},{"style":170},[286],{"type":27,"value":173},{"type":21,"tag":101,"props":288,"children":289},{"style":108},[290],{"type":27,"value":291},"!\n",{"type":21,"tag":293,"props":294,"children":295},"hr",{},[],{"type":21,"tag":222,"props":297,"children":299},{"id":298},"encryptionkey-string-required",[300,306,307,312],{"type":21,"tag":34,"props":301,"children":303},{"className":302},[],[304],{"type":27,"value":305},"encryptionKey",{"type":27,"value":233},{"type":21,"tag":34,"props":308,"children":310},{"className":309},[],[311],{"type":27,"value":239},{"type":27,"value":241},{"type":21,"tag":41,"props":314,"children":315},{},[316,318,322,324,329,331,337,339,345],{"type":27,"value":317},"32-byte AES-256-GCM symmetric key, base64-encoded. All log content is encrypted with this key before leaving your process. The Lumber app generates it on your device when you create an app, and you can copy it from the app's ",{"type":21,"tag":248,"props":319,"children":320},{},[321],{"type":27,"value":252},{"type":27,"value":323}," screen. ",{"type":21,"tag":34,"props":325,"children":327},{"className":326},[],[328],{"type":27,"value":51},{"type":27,"value":330}," (and ",{"type":21,"tag":34,"props":332,"children":334},{"className":333},[],[335],{"type":27,"value":336},"new LumberClient()",{"type":27,"value":338},") throws a ",{"type":21,"tag":34,"props":340,"children":342},{"className":341},[],[343],{"type":27,"value":344},"RangeError",{"type":27,"value":346}," if the value doesn't decode to exactly 32 bytes.",{"type":21,"tag":91,"props":348,"children":350},{"className":93,"code":349,"language":95,"meta":14,"style":14},"encryptionKey: process.env.LUMBER_ENCRYPTION_KEY!\n",[351],{"type":21,"tag":34,"props":352,"children":353},{"__ignoreMap":14},[354],{"type":21,"tag":101,"props":355,"children":356},{"class":103,"line":104},[357,361,365,369],{"type":21,"tag":101,"props":358,"children":359},{"style":150},[360],{"type":27,"value":305},{"type":21,"tag":101,"props":362,"children":363},{"style":114},[364],{"type":27,"value":282},{"type":21,"tag":101,"props":366,"children":367},{"style":170},[368],{"type":27,"value":197},{"type":21,"tag":101,"props":370,"children":371},{"style":108},[372],{"type":27,"value":291},{"type":21,"tag":293,"props":374,"children":375},{},[],{"type":21,"tag":222,"props":377,"children":379},{"id":378},"endpoint-string-optional",[380,386,387,392],{"type":21,"tag":34,"props":381,"children":383},{"className":382},[],[384],{"type":27,"value":385},"endpoint",{"type":27,"value":233},{"type":21,"tag":34,"props":388,"children":390},{"className":389},[],[391],{"type":27,"value":239},{"type":27,"value":393}," · optional",{"type":21,"tag":41,"props":395,"children":396},{},[397,399,405,407,413],{"type":27,"value":398},"Override the Lumber API base URL (no trailing path). Defaults to the official Lumber API, ",{"type":21,"tag":34,"props":400,"children":402},{"className":401},[],[403],{"type":27,"value":404},"https:\u002F\u002Fapi.lumber.infinitetoken.com",{"type":27,"value":406},". Useful for routing through a proxy. The SDK posts each log to ",{"type":21,"tag":34,"props":408,"children":410},{"className":409},[],[411],{"type":27,"value":412},"{endpoint}\u002Flogs",{"type":27,"value":263},{"type":21,"tag":91,"props":415,"children":417},{"className":93,"code":416,"language":95,"meta":14,"style":14},"endpoint: 'https:\u002F\u002Fyour-proxy.example.com'\n",[418],{"type":21,"tag":34,"props":419,"children":420},{"__ignoreMap":14},[421],{"type":21,"tag":101,"props":422,"children":423},{"class":103,"line":104},[424,428,433],{"type":21,"tag":101,"props":425,"children":426},{"style":150},[427],{"type":27,"value":385},{"type":21,"tag":101,"props":429,"children":430},{"style":114},[431],{"type":27,"value":432},": ",{"type":21,"tag":101,"props":434,"children":435},{"style":125},[436],{"type":27,"value":437},"'https:\u002F\u002Fyour-proxy.example.com'\n",{"type":21,"tag":293,"props":439,"children":440},{},[],{"type":21,"tag":222,"props":442,"children":444},{"id":443},"console-boolean-consoleoptions-optional",[445,451,452,458],{"type":21,"tag":34,"props":446,"children":448},{"className":447},[],[449],{"type":27,"value":450},"console",{"type":27,"value":233},{"type":21,"tag":34,"props":453,"children":455},{"className":454},[],[456],{"type":27,"value":457},"boolean | ConsoleOptions",{"type":27,"value":393},{"type":21,"tag":41,"props":460,"children":461},{},[462],{"type":27,"value":463},"Echo logs to stdout\u002Fstderr. Disabled by default.",{"type":21,"tag":41,"props":465,"children":466},{},[467,476],{"type":21,"tag":248,"props":468,"children":469},{},[470],{"type":21,"tag":34,"props":471,"children":473},{"className":472},[],[474],{"type":27,"value":475},"true",{"type":27,"value":477}," - all levels, message only, colored prefix when TTY.",{"type":21,"tag":41,"props":479,"children":480},{},[481],{"type":21,"tag":248,"props":482,"children":483},{},[484],{"type":27,"value":485},"Object form:",{"type":21,"tag":91,"props":487,"children":489},{"className":93,"code":488,"language":95,"meta":14,"style":14},"console: {\n  levels?: Partial\u003CRecord\u003C'debug' | 'info' | 'warn' | 'error' | 'fatal', boolean>>\n  prefix?: boolean    \u002F\u002F show [DEBUG]\u002F[INFO]\u002Fetc label - default true\n  color?: boolean     \u002F\u002F ANSI colors when TTY - default true\n  data?: boolean      \u002F\u002F append metadata after message - default false\n  pretty?: boolean    \u002F\u002F JSON.stringify extras with indentation - default false\n  timestamp?: boolean | 'time' | 'iso' | 'relative'\n}\n",[490],{"type":21,"tag":34,"props":491,"children":492},{"__ignoreMap":14},[493,505,589,612,634,656,677,723],{"type":21,"tag":101,"props":494,"children":495},{"class":103,"line":104},[496,500],{"type":21,"tag":101,"props":497,"children":498},{"style":150},[499],{"type":27,"value":450},{"type":21,"tag":101,"props":501,"children":502},{"style":114},[503],{"type":27,"value":504},": {\n",{"type":21,"tag":101,"props":506,"children":507},{"class":103,"line":131},[508,513,518,523,528,533,537,542,547,552,556,561,565,570,574,579,584],{"type":21,"tag":101,"props":509,"children":510},{"style":114},[511],{"type":27,"value":512},"  levels",{"type":21,"tag":101,"props":514,"children":515},{"style":108},[516],{"type":27,"value":517},"?:",{"type":21,"tag":101,"props":519,"children":520},{"style":114},[521],{"type":27,"value":522}," Partial",{"type":21,"tag":101,"props":524,"children":525},{"style":108},[526],{"type":27,"value":527},"\u003C",{"type":21,"tag":101,"props":529,"children":530},{"style":114},[531],{"type":27,"value":532},"Record",{"type":21,"tag":101,"props":534,"children":535},{"style":108},[536],{"type":27,"value":527},{"type":21,"tag":101,"props":538,"children":539},{"style":125},[540],{"type":27,"value":541},"'debug'",{"type":21,"tag":101,"props":543,"children":544},{"style":108},[545],{"type":27,"value":546}," |",{"type":21,"tag":101,"props":548,"children":549},{"style":125},[550],{"type":27,"value":551}," 'info'",{"type":21,"tag":101,"props":553,"children":554},{"style":108},[555],{"type":27,"value":546},{"type":21,"tag":101,"props":557,"children":558},{"style":125},[559],{"type":27,"value":560}," 'warn'",{"type":21,"tag":101,"props":562,"children":563},{"style":108},[564],{"type":27,"value":546},{"type":21,"tag":101,"props":566,"children":567},{"style":125},[568],{"type":27,"value":569}," 'error'",{"type":21,"tag":101,"props":571,"children":572},{"style":108},[573],{"type":27,"value":546},{"type":21,"tag":101,"props":575,"children":576},{"style":125},[577],{"type":27,"value":578}," 'fatal'",{"type":21,"tag":101,"props":580,"children":581},{"style":114},[582],{"type":27,"value":583},", boolean",{"type":21,"tag":101,"props":585,"children":586},{"style":108},[587],{"type":27,"value":588},">>\n",{"type":21,"tag":101,"props":590,"children":591},{"class":103,"line":141},[592,597,601,606],{"type":21,"tag":101,"props":593,"children":594},{"style":114},[595],{"type":27,"value":596},"  prefix",{"type":21,"tag":101,"props":598,"children":599},{"style":108},[600],{"type":27,"value":517},{"type":21,"tag":101,"props":602,"children":603},{"style":114},[604],{"type":27,"value":605}," boolean    ",{"type":21,"tag":101,"props":607,"children":609},{"style":608},"--shiki-default:#6A737D",[610],{"type":27,"value":611},"\u002F\u002F show [DEBUG]\u002F[INFO]\u002Fetc label - default true\n",{"type":21,"tag":101,"props":613,"children":614},{"class":103,"line":161},[615,620,624,629],{"type":21,"tag":101,"props":616,"children":617},{"style":114},[618],{"type":27,"value":619},"  color",{"type":21,"tag":101,"props":621,"children":622},{"style":108},[623],{"type":27,"value":517},{"type":21,"tag":101,"props":625,"children":626},{"style":114},[627],{"type":27,"value":628}," boolean     ",{"type":21,"tag":101,"props":630,"children":631},{"style":608},[632],{"type":27,"value":633},"\u002F\u002F ANSI colors when TTY - default true\n",{"type":21,"tag":101,"props":635,"children":636},{"class":103,"line":186},[637,642,646,651],{"type":21,"tag":101,"props":638,"children":639},{"style":114},[640],{"type":27,"value":641},"  data",{"type":21,"tag":101,"props":643,"children":644},{"style":108},[645],{"type":27,"value":517},{"type":21,"tag":101,"props":647,"children":648},{"style":114},[649],{"type":27,"value":650}," boolean      ",{"type":21,"tag":101,"props":652,"children":653},{"style":608},[654],{"type":27,"value":655},"\u002F\u002F append metadata after message - default false\n",{"type":21,"tag":101,"props":657,"children":658},{"class":103,"line":208},[659,664,668,672],{"type":21,"tag":101,"props":660,"children":661},{"style":114},[662],{"type":27,"value":663},"  pretty",{"type":21,"tag":101,"props":665,"children":666},{"style":108},[667],{"type":27,"value":517},{"type":21,"tag":101,"props":669,"children":670},{"style":114},[671],{"type":27,"value":605},{"type":21,"tag":101,"props":673,"children":674},{"style":608},[675],{"type":27,"value":676},"\u002F\u002F JSON.stringify extras with indentation - default false\n",{"type":21,"tag":101,"props":678,"children":680},{"class":103,"line":679},7,[681,686,690,695,700,705,709,714,718],{"type":21,"tag":101,"props":682,"children":683},{"style":114},[684],{"type":27,"value":685},"  timestamp",{"type":21,"tag":101,"props":687,"children":688},{"style":108},[689],{"type":27,"value":517},{"type":21,"tag":101,"props":691,"children":692},{"style":114},[693],{"type":27,"value":694}," boolean ",{"type":21,"tag":101,"props":696,"children":697},{"style":108},[698],{"type":27,"value":699},"|",{"type":21,"tag":101,"props":701,"children":702},{"style":125},[703],{"type":27,"value":704}," 'time'",{"type":21,"tag":101,"props":706,"children":707},{"style":108},[708],{"type":27,"value":546},{"type":21,"tag":101,"props":710,"children":711},{"style":125},[712],{"type":27,"value":713}," 'iso'",{"type":21,"tag":101,"props":715,"children":716},{"style":108},[717],{"type":27,"value":546},{"type":21,"tag":101,"props":719,"children":720},{"style":125},[721],{"type":27,"value":722}," 'relative'\n",{"type":21,"tag":101,"props":724,"children":726},{"class":103,"line":725},8,[727],{"type":21,"tag":101,"props":728,"children":729},{"style":114},[730],{"type":27,"value":731},"}\n",{"type":21,"tag":41,"props":733,"children":734},{},[735],{"type":21,"tag":248,"props":736,"children":737},{},[738,744],{"type":21,"tag":34,"props":739,"children":741},{"className":740},[],[742],{"type":27,"value":743},"timestamp",{"type":27,"value":745}," values:",{"type":21,"tag":747,"props":748,"children":749},"table",{},[750,769],{"type":21,"tag":751,"props":752,"children":753},"thead",{},[754],{"type":21,"tag":755,"props":756,"children":757},"tr",{},[758,764],{"type":21,"tag":759,"props":760,"children":761},"th",{},[762],{"type":27,"value":763},"Value",{"type":21,"tag":759,"props":765,"children":766},{},[767],{"type":27,"value":768},"Output",{"type":21,"tag":770,"props":771,"children":772},"tbody",{},[773,802,823],{"type":21,"tag":755,"props":774,"children":775},{},[776,793],{"type":21,"tag":777,"props":778,"children":779},"td",{},[780,785,787],{"type":21,"tag":34,"props":781,"children":783},{"className":782},[],[784],{"type":27,"value":475},{"type":27,"value":786}," or ",{"type":21,"tag":34,"props":788,"children":790},{"className":789},[],[791],{"type":27,"value":792},"'time'",{"type":21,"tag":777,"props":794,"children":795},{},[796],{"type":21,"tag":34,"props":797,"children":799},{"className":798},[],[800],{"type":27,"value":801},"14:32:01.452 ",{"type":21,"tag":755,"props":803,"children":804},{},[805,814],{"type":21,"tag":777,"props":806,"children":807},{},[808],{"type":21,"tag":34,"props":809,"children":811},{"className":810},[],[812],{"type":27,"value":813},"'iso'",{"type":21,"tag":777,"props":815,"children":816},{},[817],{"type":21,"tag":34,"props":818,"children":820},{"className":819},[],[821],{"type":27,"value":822},"2024-01-15T14:32:01.452Z ",{"type":21,"tag":755,"props":824,"children":825},{},[826,835],{"type":21,"tag":777,"props":827,"children":828},{},[829],{"type":21,"tag":34,"props":830,"children":832},{"className":831},[],[833],{"type":27,"value":834},"'relative'",{"type":21,"tag":777,"props":836,"children":837},{},[838,844],{"type":21,"tag":34,"props":839,"children":841},{"className":840},[],[842],{"type":27,"value":843},"+0.452s ",{"type":27,"value":845}," (since process start)",{"type":21,"tag":41,"props":847,"children":848},{},[849],{"type":21,"tag":248,"props":850,"children":851},{},[852],{"type":27,"value":853},"Example - development config:",{"type":21,"tag":91,"props":855,"children":857},{"className":93,"code":856,"language":95,"meta":14,"style":14},"lumber.config({\n  apiKey: process.env.LUMBER_API_KEY!,\n  encryptionKey: process.env.LUMBER_ENCRYPTION_KEY!,\n  console: {\n    timestamp: 'time',\n    color: true,\n    data: true,\n    pretty: true,\n    levels: { debug: process.env.NODE_ENV !== 'production' },\n  },\n})\n",[858],{"type":21,"tag":34,"props":859,"children":860},{"__ignoreMap":14},[861,876,895,914,922,938,954,970,986,1015,1024],{"type":21,"tag":101,"props":862,"children":863},{"class":103,"line":104},[864,868,872],{"type":21,"tag":101,"props":865,"children":866},{"style":114},[867],{"type":27,"value":147},{"type":21,"tag":101,"props":869,"children":870},{"style":150},[871],{"type":27,"value":153},{"type":21,"tag":101,"props":873,"children":874},{"style":114},[875],{"type":27,"value":158},{"type":21,"tag":101,"props":877,"children":878},{"class":103,"line":131},[879,883,887,891],{"type":21,"tag":101,"props":880,"children":881},{"style":114},[882],{"type":27,"value":167},{"type":21,"tag":101,"props":884,"children":885},{"style":170},[886],{"type":27,"value":173},{"type":21,"tag":101,"props":888,"children":889},{"style":108},[890],{"type":27,"value":178},{"type":21,"tag":101,"props":892,"children":893},{"style":114},[894],{"type":27,"value":183},{"type":21,"tag":101,"props":896,"children":897},{"class":103,"line":141},[898,902,906,910],{"type":21,"tag":101,"props":899,"children":900},{"style":114},[901],{"type":27,"value":192},{"type":21,"tag":101,"props":903,"children":904},{"style":170},[905],{"type":27,"value":197},{"type":21,"tag":101,"props":907,"children":908},{"style":108},[909],{"type":27,"value":178},{"type":21,"tag":101,"props":911,"children":912},{"style":114},[913],{"type":27,"value":183},{"type":21,"tag":101,"props":915,"children":916},{"class":103,"line":161},[917],{"type":21,"tag":101,"props":918,"children":919},{"style":114},[920],{"type":27,"value":921},"  console: {\n",{"type":21,"tag":101,"props":923,"children":924},{"class":103,"line":186},[925,930,934],{"type":21,"tag":101,"props":926,"children":927},{"style":114},[928],{"type":27,"value":929},"    timestamp: ",{"type":21,"tag":101,"props":931,"children":932},{"style":125},[933],{"type":27,"value":792},{"type":21,"tag":101,"props":935,"children":936},{"style":114},[937],{"type":27,"value":183},{"type":21,"tag":101,"props":939,"children":940},{"class":103,"line":208},[941,946,950],{"type":21,"tag":101,"props":942,"children":943},{"style":114},[944],{"type":27,"value":945},"    color: ",{"type":21,"tag":101,"props":947,"children":948},{"style":170},[949],{"type":27,"value":475},{"type":21,"tag":101,"props":951,"children":952},{"style":114},[953],{"type":27,"value":183},{"type":21,"tag":101,"props":955,"children":956},{"class":103,"line":679},[957,962,966],{"type":21,"tag":101,"props":958,"children":959},{"style":114},[960],{"type":27,"value":961},"    data: ",{"type":21,"tag":101,"props":963,"children":964},{"style":170},[965],{"type":27,"value":475},{"type":21,"tag":101,"props":967,"children":968},{"style":114},[969],{"type":27,"value":183},{"type":21,"tag":101,"props":971,"children":972},{"class":103,"line":725},[973,978,982],{"type":21,"tag":101,"props":974,"children":975},{"style":114},[976],{"type":27,"value":977},"    pretty: ",{"type":21,"tag":101,"props":979,"children":980},{"style":170},[981],{"type":27,"value":475},{"type":21,"tag":101,"props":983,"children":984},{"style":114},[985],{"type":27,"value":183},{"type":21,"tag":101,"props":987,"children":989},{"class":103,"line":988},9,[990,995,1000,1005,1010],{"type":21,"tag":101,"props":991,"children":992},{"style":114},[993],{"type":27,"value":994},"    levels: { debug: process.env.",{"type":21,"tag":101,"props":996,"children":997},{"style":170},[998],{"type":27,"value":999},"NODE_ENV",{"type":21,"tag":101,"props":1001,"children":1002},{"style":108},[1003],{"type":27,"value":1004}," !==",{"type":21,"tag":101,"props":1006,"children":1007},{"style":125},[1008],{"type":27,"value":1009}," 'production'",{"type":21,"tag":101,"props":1011,"children":1012},{"style":114},[1013],{"type":27,"value":1014}," },\n",{"type":21,"tag":101,"props":1016,"children":1018},{"class":103,"line":1017},10,[1019],{"type":21,"tag":101,"props":1020,"children":1021},{"style":114},[1022],{"type":27,"value":1023},"  },\n",{"type":21,"tag":101,"props":1025,"children":1027},{"class":103,"line":1026},11,[1028],{"type":21,"tag":101,"props":1029,"children":1030},{"style":114},[1031],{"type":27,"value":214},{"type":21,"tag":293,"props":1033,"children":1034},{},[],{"type":21,"tag":222,"props":1036,"children":1038},{"id":1037},"context-boolean-contextoptions-optional",[1039,1045,1046,1052],{"type":21,"tag":34,"props":1040,"children":1042},{"className":1041},[],[1043],{"type":27,"value":1044},"context",{"type":27,"value":233},{"type":21,"tag":34,"props":1047,"children":1049},{"className":1048},[],[1050],{"type":27,"value":1051},"boolean | ContextOptions",{"type":27,"value":393},{"type":21,"tag":41,"props":1054,"children":1055},{},[1056,1058,1063],{"type":27,"value":1057},"Controls automatic environment context attached to every log. Defaults to ",{"type":21,"tag":34,"props":1059,"children":1061},{"className":1060},[],[1062],{"type":27,"value":475},{"type":27,"value":263},{"type":21,"tag":41,"props":1065,"children":1066},{},[1067,1075,1077,1083,1085,1091,1093,1098],{"type":21,"tag":248,"props":1068,"children":1069},{},[1070],{"type":21,"tag":34,"props":1071,"children":1073},{"className":1072},[],[1074],{"type":27,"value":475},{"type":27,"value":1076}," - capture ",{"type":21,"tag":34,"props":1078,"children":1080},{"className":1079},[],[1081],{"type":27,"value":1082},"pid",{"type":27,"value":1084},", ",{"type":21,"tag":34,"props":1086,"children":1088},{"className":1087},[],[1089],{"type":27,"value":1090},"hostname",{"type":27,"value":1092},", and ",{"type":21,"tag":34,"props":1094,"children":1096},{"className":1095},[],[1097],{"type":27,"value":999},{"type":27,"value":1099}," (captured once at config time).",{"type":21,"tag":41,"props":1101,"children":1102},{},[1103,1112],{"type":21,"tag":248,"props":1104,"children":1105},{},[1106],{"type":21,"tag":34,"props":1107,"children":1109},{"className":1108},[],[1110],{"type":27,"value":1111},"false",{"type":27,"value":1113}," - disable all context capture.",{"type":21,"tag":41,"props":1115,"children":1116},{},[1117],{"type":21,"tag":248,"props":1118,"children":1119},{},[1120],{"type":27,"value":485},{"type":21,"tag":91,"props":1122,"children":1124},{"className":93,"code":1123,"language":95,"meta":14,"style":14},"context: {\n  env?: boolean       \u002F\u002F capture pid, hostname, NODE_ENV - default true\n  caller?: boolean    \u002F\u002F capture file\u002Fline\u002Fcolumn per log - default false\n  callerDepth?: number \u002F\u002F extra stack frames to skip for wrapper layers - default 0\n}\n",[1125],{"type":21,"tag":34,"props":1126,"children":1127},{"__ignoreMap":14},[1128,1139,1161,1182,1204],{"type":21,"tag":101,"props":1129,"children":1130},{"class":103,"line":104},[1131,1135],{"type":21,"tag":101,"props":1132,"children":1133},{"style":150},[1134],{"type":27,"value":1044},{"type":21,"tag":101,"props":1136,"children":1137},{"style":114},[1138],{"type":27,"value":504},{"type":21,"tag":101,"props":1140,"children":1141},{"class":103,"line":131},[1142,1147,1151,1156],{"type":21,"tag":101,"props":1143,"children":1144},{"style":114},[1145],{"type":27,"value":1146},"  env",{"type":21,"tag":101,"props":1148,"children":1149},{"style":108},[1150],{"type":27,"value":517},{"type":21,"tag":101,"props":1152,"children":1153},{"style":114},[1154],{"type":27,"value":1155}," boolean       ",{"type":21,"tag":101,"props":1157,"children":1158},{"style":608},[1159],{"type":27,"value":1160},"\u002F\u002F capture pid, hostname, NODE_ENV - default true\n",{"type":21,"tag":101,"props":1162,"children":1163},{"class":103,"line":141},[1164,1169,1173,1177],{"type":21,"tag":101,"props":1165,"children":1166},{"style":114},[1167],{"type":27,"value":1168},"  caller",{"type":21,"tag":101,"props":1170,"children":1171},{"style":108},[1172],{"type":27,"value":517},{"type":21,"tag":101,"props":1174,"children":1175},{"style":114},[1176],{"type":27,"value":605},{"type":21,"tag":101,"props":1178,"children":1179},{"style":608},[1180],{"type":27,"value":1181},"\u002F\u002F capture file\u002Fline\u002Fcolumn per log - default false\n",{"type":21,"tag":101,"props":1183,"children":1184},{"class":103,"line":161},[1185,1190,1194,1199],{"type":21,"tag":101,"props":1186,"children":1187},{"style":114},[1188],{"type":27,"value":1189},"  callerDepth",{"type":21,"tag":101,"props":1191,"children":1192},{"style":108},[1193],{"type":27,"value":517},{"type":21,"tag":101,"props":1195,"children":1196},{"style":114},[1197],{"type":27,"value":1198}," number ",{"type":21,"tag":101,"props":1200,"children":1201},{"style":608},[1202],{"type":27,"value":1203},"\u002F\u002F extra stack frames to skip for wrapper layers - default 0\n",{"type":21,"tag":101,"props":1205,"children":1206},{"class":103,"line":186},[1207],{"type":21,"tag":101,"props":1208,"children":1209},{"style":114},[1210],{"type":27,"value":731},{"type":21,"tag":41,"props":1212,"children":1213},{},[1214,1223],{"type":21,"tag":248,"props":1215,"children":1216},{},[1217],{"type":21,"tag":34,"props":1218,"children":1220},{"className":1219},[],[1221],{"type":27,"value":1222},"callerDepth",{"type":27,"value":1224}," is useful when you wrap the Lumber client:",{"type":21,"tag":91,"props":1226,"children":1228},{"className":93,"code":1227,"language":95,"meta":14,"style":14},"\u002F\u002F Your wrapper adds one frame to the stack\nfunction log(msg: string) {\n  lumber.info(msg)\n}\n\n\u002F\u002F Without callerDepth, context.code points to this wrapper, not your caller\nlumber.config({\n  context: { caller: true, callerDepth: 1 },\n})\n",[1229],{"type":21,"tag":34,"props":1230,"children":1231},{"__ignoreMap":14},[1232,1240,1279,1297,1304,1311,1319,1334,1360],{"type":21,"tag":101,"props":1233,"children":1234},{"class":103,"line":104},[1235],{"type":21,"tag":101,"props":1236,"children":1237},{"style":608},[1238],{"type":27,"value":1239},"\u002F\u002F Your wrapper adds one frame to the stack\n",{"type":21,"tag":101,"props":1241,"children":1242},{"class":103,"line":131},[1243,1248,1253,1258,1264,1269,1274],{"type":21,"tag":101,"props":1244,"children":1245},{"style":108},[1246],{"type":27,"value":1247},"function",{"type":21,"tag":101,"props":1249,"children":1250},{"style":150},[1251],{"type":27,"value":1252}," log",{"type":21,"tag":101,"props":1254,"children":1255},{"style":114},[1256],{"type":27,"value":1257},"(",{"type":21,"tag":101,"props":1259,"children":1261},{"style":1260},"--shiki-default:#FFAB70",[1262],{"type":27,"value":1263},"msg",{"type":21,"tag":101,"props":1265,"children":1266},{"style":108},[1267],{"type":27,"value":1268},":",{"type":21,"tag":101,"props":1270,"children":1271},{"style":170},[1272],{"type":27,"value":1273}," string",{"type":21,"tag":101,"props":1275,"children":1276},{"style":114},[1277],{"type":27,"value":1278},") {\n",{"type":21,"tag":101,"props":1280,"children":1281},{"class":103,"line":141},[1282,1287,1292],{"type":21,"tag":101,"props":1283,"children":1284},{"style":114},[1285],{"type":27,"value":1286},"  lumber.",{"type":21,"tag":101,"props":1288,"children":1289},{"style":150},[1290],{"type":27,"value":1291},"info",{"type":21,"tag":101,"props":1293,"children":1294},{"style":114},[1295],{"type":27,"value":1296},"(msg)\n",{"type":21,"tag":101,"props":1298,"children":1299},{"class":103,"line":161},[1300],{"type":21,"tag":101,"props":1301,"children":1302},{"style":114},[1303],{"type":27,"value":731},{"type":21,"tag":101,"props":1305,"children":1306},{"class":103,"line":186},[1307],{"type":21,"tag":101,"props":1308,"children":1309},{"emptyLinePlaceholder":135},[1310],{"type":27,"value":138},{"type":21,"tag":101,"props":1312,"children":1313},{"class":103,"line":208},[1314],{"type":21,"tag":101,"props":1315,"children":1316},{"style":608},[1317],{"type":27,"value":1318},"\u002F\u002F Without callerDepth, context.code points to this wrapper, not your caller\n",{"type":21,"tag":101,"props":1320,"children":1321},{"class":103,"line":679},[1322,1326,1330],{"type":21,"tag":101,"props":1323,"children":1324},{"style":114},[1325],{"type":27,"value":147},{"type":21,"tag":101,"props":1327,"children":1328},{"style":150},[1329],{"type":27,"value":153},{"type":21,"tag":101,"props":1331,"children":1332},{"style":114},[1333],{"type":27,"value":158},{"type":21,"tag":101,"props":1335,"children":1336},{"class":103,"line":725},[1337,1342,1346,1351,1356],{"type":21,"tag":101,"props":1338,"children":1339},{"style":114},[1340],{"type":27,"value":1341},"  context: { caller: ",{"type":21,"tag":101,"props":1343,"children":1344},{"style":170},[1345],{"type":27,"value":475},{"type":21,"tag":101,"props":1347,"children":1348},{"style":114},[1349],{"type":27,"value":1350},", callerDepth: ",{"type":21,"tag":101,"props":1352,"children":1353},{"style":170},[1354],{"type":27,"value":1355},"1",{"type":21,"tag":101,"props":1357,"children":1358},{"style":114},[1359],{"type":27,"value":1014},{"type":21,"tag":101,"props":1361,"children":1362},{"class":103,"line":988},[1363],{"type":21,"tag":101,"props":1364,"children":1365},{"style":114},[1366],{"type":27,"value":214},{"type":21,"tag":1368,"props":1369,"children":1370},"style",{},[1371],{"type":27,"value":1372},"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);}",{"title":14,"searchDepth":131,"depth":131,"links":1374},[1375,1376],{"id":31,"depth":131,"text":39},{"id":217,"depth":131,"text":220,"children":1377},[1378,1380,1382,1384,1386],{"id":224,"depth":141,"text":1379},"apiKey · string · required",{"id":298,"depth":141,"text":1381},"encryptionKey · string · required",{"id":378,"depth":141,"text":1383},"endpoint · string · optional",{"id":443,"depth":141,"text":1385},"console · boolean | ConsoleOptions · optional",{"id":1037,"depth":141,"text":1387},"context · boolean | ContextOptions · optional","markdown","content:docs:4.configuration.md","content","docs\u002F4.configuration.md","docs\u002F4.configuration","md",1792656860514]