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

Every Line ends with a "[0m" #58

Closed srinivas-codezyng closed 4 years ago

srinivas-codezyng commented 4 years ago

Hi, I started using logger in my project. In Android studio, In every line there is "[0m" appended. Please let me know if I am doing something wrong with the usage.

Screenshot 2020-07-30 at 8 43 58 PM
haarts commented 4 years ago

That's because AndroidStudio is unable to display colors. Set the constructor argument colors to false for the PretterPrinter. Like so Logger(printer: PrettyPrinter(colors: false)).