PrintWriter font colour

Hi there!

I am trying to write via my groovy PrintWriter a debug text written in the regular black text, and an error text written in red. My googling was fruitless, if someone can help, it would be great!!


why not use inbuild keyword
KeywordUtil log = new KeywordUtil()

log.logInfo(“this is info step”)
log.markFailed(“this step is failed”)
log.markError(“step has error”)

Hy Timo.

Since I am trying to write to a file all the logs, and from my understanding “log” writes to the logs of Katalon.


check this

1 Like