Unable to write message to log file upon run failure or Error

I have the following code that will fail each time, but I’m unable to get a user friendly message to output to the logs so they know what steps to take in simple English (rather than tech-heavy java errors). I tried multiple different ways and have yet to get any custom output showing in the console. Anyone have any ideas?

import com.kms.katalon.core.logging.KeywordLogger as KeywordLogger

import com.kms.katalon.core.model.FailureHandling as FailureHandling

import com.kms.katalon.core.util.KeywordUtil

import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI

KeywordLogger log = new KeywordLogger()

if(WebUI.click(findTestObject(‘Page_Home/a_Training’), FailureHandling.STOP_ON_FAILURE)) {

      KeywordUtil.markFailed("TEST1");

      KeywordUtil.markError("TEST2");

      log.logInfo("TEST3");

      log.logFailed("TEST4");

      log.logError("TEST5");

      log.logNotRun("TEST6");

      log.logPassed("TEST7");

      log.logWarning("TEST8");

      WebUI.comment("TEST9");

}

Were you able to figure this out?