Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Latest commit

 

History

History
66 lines (49 loc) · 2.03 KB

README.md

File metadata and controls

66 lines (49 loc) · 2.03 KB

Radium

A log highlighter extension for VS Code





A Visual Studio Code extension to highlight log files. The out-of-the-box colors are customizable but by default the currently applied theme's color schemes are used to highlight the logs.

🚧 Under development

Demo

  • radium-server.log

    [2020-07-26 09:55:27,969]  INFO {dev.radium.Activator} -  Starting Radium Server
    [2020-07-26 09:56:18,121]  INFO {dev.radium.DeploymentEngine} -  Deploying Web service: dev.radium.service-1.0.0
    [2020-07-26 09:57:21,443]  INFO {dev.radium.vscode.API} -  Initializing API: vscode-OverviewRulerColor
    [2020-07-26 09:57:21,472]  INFO {dev.radium.vscode.API} -  Initializing API: vscode-OverviewRulerLane
    [2020-07-26 09:57:21,486]  INFO {dev.radium.vscode.API} -  Initializing API: vscode-DecorationRenderOptions
    
  • settings.json

    {
        "radium.highlight": [
            {
                "pattern": "(Deploying Web service)",
                "highlight": "#6f42c1",
                "tooltip": "This `INFO` log represents that the Radium server is deploying a Web Service within the server (followed by the name of the Web Service)\n\n---\n- Product: **Radium Server**\n- Version: `v0.1.0`"
            }
        ]
    }
  • Radium / VS Code output

    Demo Radium Configurations & Output

Configuration model

{
    "radium.highlight": [
        {
            "pattern": "a regex pattern to be highlighted or plain text" [required],
            "color": "the text/font color" [optional],
            "highlight": "a highlight/background color",
            "tooltip": "a tooltip/hover message to be shown" [optional]
        }
    ]
}

Inspired by Log File Highlighter Extension & made with ❤️