Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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