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

how to delete the log title #50

Closed kamike closed 4 years ago

kamike commented 4 years ago

I want to remove the title of the log to save space. I set printTime: false,It look like doesn't work, what should I do?

image

image

Another problem is that if there are spaces in the console, garbled characters will appear. This library is very useful, do not want to give it up,Please give me some suggestions, thank you very much!!

logger: ^0.9.1 flutter sdk: ">=2.7.0 <3.0.0"

haarts commented 4 years ago

Responding to the numbered boxes you have in the first screenshot:

  1. This is from Flutter itself. There's nothing we can do about that. You'll notice that this only happens when outputting to a console. With a file output this is gone.
  2. This is because Android Studio (or some other IDE like VSCode) do not understand ASCII escape codes. Please read this how to solve it: https://github.com/leisim/logger/#colors
  3. Same issue as above. This is the ASCII escape code to reset colors.

You can further tweak the output of the PrettyPrinter with the constructor arguments.

I'm closing the issue if this doesn't help you please feel free to reopen.