simc / logger

Small, easy to use and extensible logger which prints beautiful logs.
https://pub.dev/packages/logger
MIT License
1.07k stars 129 forks source link

Add colors param to SimplePrinter #13

Closed galki closed 4 years ago

galki commented 5 years ago
SimplePrinter(colors: true)

Reason: color is easier than having to search for [E] ...

haarts commented 4 years ago

Wouldn't the PrettyPrinter be best suited for this purpose?

galki commented 4 years ago

Perhaps. The problem is that I have limited console space and PrettyPrinter eats up a lot of it. It would make work easier to have the option to output single-line logs which would stand out clearly from the rest of the non-logger output... even if it was a single hard-coded color other than gray.

haarts commented 4 years ago

Yesterday I've done quite a bit of research into colouring console output. The way I'm thinking about it now is that this would be a good feature to have. I want to implement it as follows:

So it would be an automatic process. I hope I have time for this end of this week/beginning of next week.