Krysl / json-in-log

Home Page:https://marketplace.visualstudio.com/items?itemName=imgss.json-in-log&ssr=false#overview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

json-in-log README

解析log中的json字符串,并在小窗中显示,去下载

Features

一个log中的json有时候很长:

2020-05-31 04:56:55:204 [verbose] cmd "heartbeat" with payload: {"cmd":"heartbeat","id":17815201001}

这个插件可以在你 hover 到 json字符 上时,在小窗显示格式化后的 json

example

File associations

To make VS Code treat other file extensions than the default .log as log files, add the following to the user settings:

"files.associations": {
    "*.log.*": "log"
},

The example above associates extensions such as .log.1 and .log.2 with the Log File highlighter extension.

Changelog

v0.1.2

  • 支持在配置中设置forceWordWrap来强制在json中对\n进行换行

Enjoy!