[{"data":1,"prerenderedAt":226},["ShallowReactive",2],{"docs-\u002Fmodules\u002Flogger-config":3},{"id":4,"title":5,"body":6,"description":216,"extension":217,"meta":218,"navTitle":219,"navigation":220,"path":221,"rawbody":222,"seo":223,"stem":224,"__hash__":225},"docs\u002Fmodules\u002Flogger-config.md","Logger Config",{"type":7,"value":8,"toc":203},"minimark",[9,14,26,29,39,44,54,58,63,74,77,119,122,172,176,187,190,193,196],[10,11,13],"h1",{"id":12},"logger-config-reference","Logger config reference",[15,16,17,21,22,25],"p",{},[18,19,20],"code",{},"logger.{ext}"," stores logger settings. On Bukkit it lives in the plugin config\nfolder. On Fabric it is namespaced under ",[18,23,24],{},"config\u002F\u003Cmodid>\u002F"," by default.",[15,27,28],{},"Formats:",[30,31,32,36],"ul",{},[33,34,35],"li",{},"JSON\u002FJSONC by default",[33,37,38],{},"YAML\u002FTOML when the format helpers are available",[40,41,43],"h2",{"id":42},"minimal-example","Minimal example",[45,46,52],"pre",{"className":47,"code":49,"language":50,"meta":51},[48],"language-yaml","plugin-name: DonateMenu\nshort-name: DM\ndebug-placeholders: false\n\nprefix:\n  chat-mode: FULL\n  console-mode: SHORT\n  custom: \"[DM]\"\n  use-gradient-chat: true\n  use-gradient-console: false\n\ndefaults:\n  target: BOTH\n  text-max-length: 262144\n  placeholder-engine-order: [MINI_PLACEHOLDERS, PB4, PAPI]\n  miniplaceholders-mode: COMPONENT\n  pb4-mode: COMPONENT\n\nchat:\n  auto-generate-colors: true\n  gradient: [\"#7c3aed\", \"#ec4899\"]\n  colors:\n    error: [\"#ff4444\", \"#cc0000\"]\n    warn: [\"#ffbb33\", \"#ff8800\"]\n    debug: [\"#33b5e5\", \"#0099cc\"]\n    success: [\"#00c851\", \"#007e33\"]\n\nconsole:\n  auto-generate-colors: true\n  gradient: [\"#ffcc00\", \"#ff6600\"]\n  strip-formatting: false\n  colors:\n    error: [\"#ff4444\", \"#cc0000\"]\n    warn: [\"#ffbb33\", \"#ff8800\"]\n    debug: [\"#33b5e5\", \"#0099cc\"]\n    success: [\"#00c851\", \"#007e33\"]\n\nhelp:\n  use-logger-colors: true\n  primary-color: \"#ff55ff\"\n  muted-color: \"gray\"\n  text-color: \"white\"\n  line: \"-----------------------------\"\n  page-size: 7\n  max-enum-values: 8\n\nsub-loggers:\n  Commands:\n    enabled: true\n","yaml","",[18,53,49],{"__ignoreMap":51},[40,55,57],{"id":56},"key-sections","Key sections",[59,60,62],"h3",{"id":61},"plugin-name-short-name","plugin-name \u002F short-name",[15,64,65,66,69,70,73],{},"Auto-filled on first run and used in prefix rendering. ",[18,67,68],{},"short-name"," is used by\n",[18,71,72],{},"PrefixMode.SHORT",".",[59,75,76],{"id":76},"prefix",[30,78,79,102,110],{},[33,80,81,84,85,88,89,92,93,92,96,92,99],{},[18,82,83],{},"chat-mode"," \u002F ",[18,86,87],{},"console-mode",": ",[18,90,91],{},"NONE",", ",[18,94,95],{},"SHORT",[18,97,98],{},"FULL",[18,100,101],{},"CUSTOM",[33,103,104,107,108],{},[18,105,106],{},"custom",": custom prefix string for ",[18,109,101],{},[33,111,112,84,115,118],{},[18,113,114],{},"use-gradient-chat",[18,116,117],{},"use-gradient-console",": apply gradient to prefix",[59,120,121],{"id":121},"defaults",[30,123,124,138,144,150,162],{},[33,125,126,88,129,92,132,92,135],{},[18,127,128],{},"target",[18,130,131],{},"CHAT",[18,133,134],{},"CONSOLE",[18,136,137],{},"BOTH",[33,139,140,143],{},[18,141,142],{},"text-max-length",": max JSON length (Fabric only)",[33,145,146,149],{},[18,147,148],{},"placeholder-engine-order",": preferred external placeholder order",[33,151,152,88,155,158,159],{},[18,153,154],{},"miniplaceholders-mode",[18,156,157],{},"COMPONENT"," or ",[18,160,161],{},"TAG",[33,163,164,88,167,158,169],{},[18,165,166],{},"pb4-mode",[18,168,157],{},[18,170,171],{},"RAW",[59,173,175],{"id":174},"chat-console","chat \u002F console",[15,177,178,179,182,183,186],{},"Color palettes and gradients. Set ",[18,180,181],{},"auto-generate-colors"," to ",[18,184,185],{},"false"," to force\ncustom palettes.",[59,188,189],{"id":189},"help",[15,191,192],{},"Controls the built-in help renderer formatting and pagination.",[59,194,195],{"id":195},"sub-loggers",[15,197,198,199,202],{},"Per-prefix enable flags for ",[18,200,201],{},"logger.withPrefix(...)"," instances.",{"title":51,"searchDepth":204,"depth":204,"links":205},3,[206,208],{"id":42,"depth":207,"text":43},2,{"id":56,"depth":207,"text":57,"children":209},[210,211,212,213,214,215],{"id":61,"depth":204,"text":62},{"id":76,"depth":204,"text":76},{"id":121,"depth":204,"text":121},{"id":174,"depth":204,"text":175},{"id":189,"depth":204,"text":189},{"id":195,"depth":204,"text":195},"Reference for configuring the MagicUtils logger: formatting, sub-loggers, levels, and help styling driven by config.","md",{},null,true,"\u002Fmodules\u002Flogger-config","---\ntitle: Logger Config\ndescription: 'Reference for configuring the MagicUtils logger: formatting, sub-loggers, levels, and help styling driven by config.'\n---\n\n# Logger config reference\n\n`logger.{ext}` stores logger settings. On Bukkit it lives in the plugin config\nfolder. On Fabric it is namespaced under `config\u002F\u003Cmodid>\u002F` by default.\n\nFormats:\n\n- JSON\u002FJSONC by default\n- YAML\u002FTOML when the format helpers are available\n\n## Minimal example\n\n```yaml\nplugin-name: DonateMenu\nshort-name: DM\ndebug-placeholders: false\n\nprefix:\n  chat-mode: FULL\n  console-mode: SHORT\n  custom: \"[DM]\"\n  use-gradient-chat: true\n  use-gradient-console: false\n\ndefaults:\n  target: BOTH\n  text-max-length: 262144\n  placeholder-engine-order: [MINI_PLACEHOLDERS, PB4, PAPI]\n  miniplaceholders-mode: COMPONENT\n  pb4-mode: COMPONENT\n\nchat:\n  auto-generate-colors: true\n  gradient: [\"#7c3aed\", \"#ec4899\"]\n  colors:\n    error: [\"#ff4444\", \"#cc0000\"]\n    warn: [\"#ffbb33\", \"#ff8800\"]\n    debug: [\"#33b5e5\", \"#0099cc\"]\n    success: [\"#00c851\", \"#007e33\"]\n\nconsole:\n  auto-generate-colors: true\n  gradient: [\"#ffcc00\", \"#ff6600\"]\n  strip-formatting: false\n  colors:\n    error: [\"#ff4444\", \"#cc0000\"]\n    warn: [\"#ffbb33\", \"#ff8800\"]\n    debug: [\"#33b5e5\", \"#0099cc\"]\n    success: [\"#00c851\", \"#007e33\"]\n\nhelp:\n  use-logger-colors: true\n  primary-color: \"#ff55ff\"\n  muted-color: \"gray\"\n  text-color: \"white\"\n  line: \"-----------------------------\"\n  page-size: 7\n  max-enum-values: 8\n\nsub-loggers:\n  Commands:\n    enabled: true\n```\n\n## Key sections\n\n### plugin-name \u002F short-name\n\nAuto-filled on first run and used in prefix rendering. `short-name` is used by\n`PrefixMode.SHORT`.\n\n### prefix\n\n- `chat-mode` \u002F `console-mode`: `NONE`, `SHORT`, `FULL`, `CUSTOM`\n- `custom`: custom prefix string for `CUSTOM`\n- `use-gradient-chat` \u002F `use-gradient-console`: apply gradient to prefix\n\n### defaults\n\n- `target`: `CHAT`, `CONSOLE`, `BOTH`\n- `text-max-length`: max JSON length (Fabric only)\n- `placeholder-engine-order`: preferred external placeholder order\n- `miniplaceholders-mode`: `COMPONENT` or `TAG`\n- `pb4-mode`: `COMPONENT` or `RAW`\n\n### chat \u002F console\n\nColor palettes and gradients. Set `auto-generate-colors` to `false` to force\ncustom palettes.\n\n### help\n\nControls the built-in help renderer formatting and pagination.\n\n### sub-loggers\n\nPer-prefix enable flags for `logger.withPrefix(...)` instances.\n",{"title":5,"description":216},"modules\u002Flogger-config","fX0iRUKmURR-9KM8qe6nWWUo7p_AssMt19LM0bFwLfM",1783944487852]