mobile-dev-inc / maestro

Painless Mobile UI Automation
https://maestro.mobile.dev/
Apache License 2.0
5.67k stars 257 forks source link

Maestro CLI dumps all logs on the INFO level, doesn't use more appropriate log levels #1744

Open findms opened 4 months ago

findms commented 4 months ago

Describe the bug Currently in debug logs we get all [INFO]. Can we change it to ERROR or DEBUG too along with respective colors.

To Reproduce Try to generate debug logs Check .maestr/tests/

Expected behavior Logs should discriminate the type and user should be able to type only INFO/DEBUG/ERROR logs

Screenshots image

bartekpacia commented 2 months ago

The logs file (e.g. ~/.maestro/tests/2024-07-11_112743/maestro.log) are text only, so there's of course no way to have coloring them.

I assume you want Maestro CLI to not dump all logs as INFO, but use the appropriate log level instead, right? Then you can do coloring in your IDE/log viewer of choice.

bartekpacia commented 1 month ago

another logging-related issue: #1808