Skip to content

Conversation

@danielle-h
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant