Skip to content

Instantly share code, notes, and snippets.

@4rmx
Created August 6, 2025 13:05
Show Gist options
  • Save 4rmx/a47c2fb202a7e778a9883bc6cfee6807 to your computer and use it in GitHub Desktop.
Save 4rmx/a47c2fb202a7e778a9883bc6cfee6807 to your computer and use it in GitHub Desktop.
starCharge log file highlighter
{
// Gun.\sStart\.\.\.
// GUN1.*?Stop
"[log]": {
"editor.largeFileOptimizations": false,
},
"logFileHighlighter.progressIndicatorUnderlineColor": "#ffee00",
"logFileHighlighter.customPatterns": [
{
"pattern": "pwrReq",
"background": "#9c07a1"
},
{
"pattern": "pwrRes",
"background": "#9c07a1"
},
{
"pattern": "\"mdlInfo\"",
"background": "#1100d2",
"foreground": "#f1f1f1"
},
{
"pattern": "\"StatusNotification\"",
"patternFlags": "i",
// "highlightEntireLine": true,
"background": "#08baec",
"foreground": "#f1f1f1"
},
{
"pattern": "Gun.\\sStart\\.\\.\\.",
"background": "#10ab1f",
"foreground": "#f1f1f1"
},
{
"pattern": "GUN.*?Stop",
"patternFlags": "i",
"background": "#ff8801",
"foreground": "#f1f1f1"
},
{
"pattern": "\"status\": \"Finishing\"",
"patternFlags": "i",
// "highlightEntireLine": true,
"background": "#ff8801",
"foreground": "#f1f1f1",
},
// {
// "pattern": "\"requestId.*?method.*?pwrUnitId.*?connId.*?$",
// "patternFlags": "si",
// // "highlightEntireLine": true,
// "background": "#10ab1f",
// "foreground": "#f1f1f1",
// },
{
"pattern": "StopReason",
"patternFlags": "i",
"background": "#ee0000",
"foreground": "#f1f1f1"
},
{
"pattern": "(\"vendorErrorCode\")",
"background": "#ee0000",
"foreground": "#f1f1f1"
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment