Wing Console logs should pretty-print (and colors) JSON
eladb opened this issue · 4 comments
Feature Spec
When emitting a JSON object into log()
(currently not supported), the Wing Console should format them nicely and use colors.
Use Cases
Ergonomics
Implementation Notes
No response
Component
Compiler, SDK, Wing Console
Community Notes
- Please vote by adding a 👍 reaction to the issue to help us prioritize.
- If you are interested to work on this issue, please leave a comment.
Hi,
This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days.
Feel free to re-open this issue when there's an update or relevant information to be added.
Thanks!
Hi,
This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days.
Feel free to re-open this issue when there's an update or relevant information to be added.
Thanks!
We recently merged a change that uses a simple regex to colorize text parts that look like json. Although it's not very smart and there are false positives.
I feel we could improve it a lot if we only try coloring stuff that starts with { or [. Will do a quick test.
Congrats! 🚀 This was released in Wing 0.77.10.