logger
logger copied to clipboard
feat(printer):create one line printer with stack trace
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.