PrintWriter font colour


#1

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!!


#2

hi,

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”)


#3

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.


#4

ok,

check this