Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-log-watcherNew to Visual Studio Code? Get it now.
vscode-log-watcher

vscode-log-watcher

xhofe

|
1 install
| (0) | Free
| Sponsor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-log-watcher

Visual Studio Marketplace Version Made with reactive-vscode

Configurations

Key Description Type Default
vscode-log-watcher.defaultFile 扩展激活时自动监听的默认日志文件绝对路径。留空则不自动打开。 string ""
vscode-log-watcher.contentTransform 自定义 JavaScript 代码,用于将每一行日志转换成面板展示内容。可写函数表达式(例如 line => line.trim())或函数体(例如 return line.trim())。当返回 undefined 或抛出异常时,将回退为原始日志行。 string ""

Commands

Command Title
vscode-log-watcher.selectLogFile Log Watcher: 选择/切换文件
vscode-log-watcher.setLogLevelFilter Log Watcher: 日志等级过滤
vscode-log-watcher.setKeywordFilter Log Watcher: 关键字过滤
vscode-log-watcher.setHighlightKeyword Log Watcher: 关键字高亮
vscode-log-watcher.pause Log Watcher: 暂停监听
vscode-log-watcher.resume Log Watcher: 恢复监听
vscode-log-watcher.clearEntries Log Watcher: 清空日志列表
vscode-log-watcher.formatJsonLine Log Watcher: JSON 格式化选中行

Presets

  • fls
(text: string) => {
    const obj = JSON.parse(text)
    const time = new Date(obj._datetime_).toLocaleString()
    return time + ' ' + obj._level_.toUpperCase() + ' ' + obj._msg_
}

License

MIT License © 2025 Andy Hsu

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft