WLPFO Log Highlighter
Syntax highlighting, inline metadata, source code navigation, and diagnostic tooltips for WLPFO logs in VS Code.
Overview
WLPFO Log Highlighter adds syntax colorization, inline metadata descriptions, interactive hovers, and direct C++ source navigation to raw framework and transaction logs.
Features
Syntax Highlighting
- Framework Code Elements: Colorizes classes, member variables (
.mField), method calls (::method), map indices ([KEY]), maps, parameters, hex blobs, and timestamps.
- Transaction Statuses: Highlights approval and decline tracking profiles (
APP*, DEC*).
- Whole-Line Markers: Colors entire lines and scrollbar margins for errors, declines, warnings, and processing exceptions.
- Universal Log Fallback: Automatically highlights standard log levels (
FATAL, ERROR, WARN, INFO, DEBUG), IP addresses, UUIDs, and URLs in any log file.
Ghost Text (Inline Descriptions)
- Decorator Names: Displays resolved decorator classes and usage flags at the end of header lines.
- System ID Mapping: Looks up raw numeric IDs (nodes, protocols, peers, card types, issuers) against registries and prints their definitions inline.
Smart Hovers
- SQL Query Formatting: Identifies SQL statements, replaces bind variables (
:f1) with their runtime values, and pretty-prints the query structure for readability.
- Hex Decoding: Decodes hex strings on hover to show structural ASCII grids, formatted JSON trees, or pretty-printed XML blocks.
- Source Snippets: Extracts and displays the exact C++ header declaration and its preceding Doxygen comments directly inside the tooltip.
Source Navigation
- Go to Definition: Supports
Ctrl + Click navigation from log properties, enums, functions, and tags directly to their declarations in the C++ source tree.
- Document Links: Converts relative file references (
../../sources/...cpp, NN) in stack traces into clickable links that jump to the exact file and line number.
- Code Folding: Provides folding blocks for transaction dumps and decorator sections to aid scrolling through long log sequences.
- CodeLens Buttons: Adds contextual action shortcuts directly onto
txn_doer tracks and transaction separators.
File Associations
| Pattern |
Description |
*.log |
Standard system execution tracks |
*.out |
Console outputs and pipeline redirect files |
*.trace |
Execution trace logs |
*.wlpfo_log |
Native core framework log files |
| Content Matching |
Automatically detects standard framework headers or [WLPFO] tags to switch language modes |
Configuration Settings
Configure extension behavior via the VS Code Settings UI (wlpfoLog.* namespace):
| Key |
Description |
Default |
features.semanticColoring |
Colorizes classes, properties, variables, and tags |
true |
features.ghostText.decorators |
Appends resolved decorator attributes to line ends |
true |
features.ghostText.idMeanings |
Prints descriptive labels next to recognized registry IDs |
true |
features.hovers |
Enables code snippets, SQL formatting, hex decoding, and documentation tooltips |
true |
features.goToDefinition |
Enables Ctrl + Click shortcuts to source code assets |
true |
features.documentLinks |
Converts log text file paths into clickable code links |
true |
features.codeLens |
Displays inline shortcut buttons above transaction lines |
true |
features.folding |
Generates folding zones for long trace blocks |
true |
features.genericLog |
Highlights levels, IPs, and URLs in non-framework text files |
true |
features.autoDetect |
Automatically switches log files to the WLPFO highlighter mode |
true |
highlight.errors |
Highlights the full row and scrollbar tracking line on failures |
true |
highlight.warnings |
Highlights the full row on system warnings |
false |
highlight.exceptions |
Highlights the full row on processing exceptions |
false |
Installation
From VSIX Package
code --install-extension wlpfo-log-highlighter-<version>.vsix
Building From Source
npm install -g @vscode/vsce
cd wlpfo-log-highlighter
vsce package --no-dependencies
License
Distributed under the MIT License.
| |