logger icon indicating copy to clipboard operation
logger copied to clipboard

feat(printer):create one line printer with stack trace

Open danielle-h opened this issue 3 years ago • 0 comments
trafficstars

This is a printer that prints the calling function + the message, and optionally the time in one line.

This makes the logger much easier to use with VSCode. VSCode has filtering options that I wanted to use for e.g. viewing all the log outputs from my PageManager.dart class. However, if I use PrettyPrinter the stack trace is on a separate line from the message, so the filter was self defeating. Using this I could easily filter only the outputs I needed.

I hope you find this useful.

danielle-h avatar Sep 08 '22 14:09 danielle-h