qgis-deployment-cli icon indicating copy to clipboard operation
qgis-deployment-cli copied to clipboard

Display warning messages in a certain color

Open vicente23 opened this issue 3 years ago • 2 comments

Warning messages are not differentiated from other logging messages. We could display them in red for example.

Example of a warning message:

the qgis executable was not found

vicente23 avatar Jul 21 '22 13:07 vicente23

We've multiple options to make it:

  1. switch to typer (which uses rich) to build the QDT CLI: better but it carries a lot of additional dependencies making the code more vulnerable.
  2. do it roughly in "pure" argparse code.

I'm for option 2.

What do you think @vicente23 @jmkerloch?

Guts avatar Nov 29 '24 17:11 Guts

May be I didn't understand well the initial question but it could be done by creating a custom logging.Formater ?

nicogodet avatar Mar 10 '25 08:03 nicogodet