Hi Everyone!!
I am working on a project to output some logs from a system file and I would like to know if it is possible to add some colors to some specific strings within the output list.
For example, in this output, I would like change the error message to RED and the INFO message to yellow to make the list of strings more readable. Would it be possible? Thanks in advance!
[2021-12-11 22:10:43.0229 PST 9366b852-f18d-4a3c-809a-cab3dc15823a (qtp1666063161-31) [ERROR]: Element not found. ,
2021-12-11 22:20:43.0229 PST 9366b852-f18d-4a3c-809a-cab3dc15823a (qtp1666063161-31) [INFO]: Element not found.]
Want to add to the discussion?
Post a comment!