Write execution log/report to file

How is it possible to write out log messages to text file?
I tried to use java.util.logging.Logger, but it writes out each message in a XML structure.

_ 2018-02-27T09:22:18_

_ 1519719738064_

_ 45_

_ MyLog_

_ INFO_

_ java_util_logging_Logger$info$1_

_ call_

_ 1_

_ LogMessage1_

Those logs are printed to that file automatically if the current test step’s level is INFO, so so you can call this function to print your custom log’s message:

import com.kms.katalon.core.logging.KeywordLogger
KeywordLogger logger = new KeywordLogger()
logger.logInfo("Your message")
1 Like