unable to print message in Log Viewer

I am trying to print message on Log Viewer using print, println, sysout but nothing is working. It prints the statement itself rather rather printing message.


  • Hi, use following instance:

    KeywordLogger log = new KeywordLogger()

    You can also use logFailed, logWarning, etc.

  • pkpk
    edited October 11

    this shows error

    unable to resolve class KeywordLogger
    @ line 65, column 15.
    KeywordLogger log = new KeywordLogger()

  • Sorry, forgot to attach import line:

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

    Next time, you can autocomplete imports clicking Ctrl+Shift+O

  • Thank you so much

Sign In or Register to comment.