Only writing generated messages to log file

Hello all,

I’m wondering if there is a way in Katalon to eliminate all of the execution steps from the log file during the test so that all I keep are the logs that I input myself. I currently have a script that generates a very large log file that I have to clean heavily to get the information I want.

The script loops through an excel file and does some comparisons. The excel file I am using has about 6400 rows in it so times that by X steps in the test you can see why the log file is gigantic. Towards the end of the test Katalon is quite slow when writing all these messages to the log file.

Any help is appreciated,

Tyler P.

You can configure the log levels:

Depends on the requirements you might want to add a separate logging mechanism (using Logback, Log4J, etc.) and write your own logs to self-managed files (or a database if necessary).

I appreciate that!

Is there a way to turn off the default DEBUG and just use the separate logger by chance? I think going the separate logger route would be what I’m looking for, just curious if I’m able to eliminate / toggle off the default logger.

EDIT: I have tried putting INFO and OFF into this config file and it has made no difference in the Katalon logs, are these log levels not supported for this config file?

EDIT 2: I found an error associated with my first edit. If I try to use INFO for example I’m getting this error

SLF4J: The requested version 1.7.16 by your slf4j binding is not compatible with [1.6]

I was also pointed to: https://www.slf4j.org/codes.html#version_mismatch

Hello Tyler_Prada

Katalon Studio version 7.0.0 gives you an option to decide whether to log executed test steps or not. For further details, please view this document.

Please first check out the release note and click here to download if you want to try version 7.0.0 (beta) in advance.

Cheers

Jass

This is a significant change for me. My project runs 15 minutes — it runs very long just to print the test steps logs. Once I could upgrade to v7.0.0 beta and opt not to log test steps, I suppose my project will finish in 3 minutes.

However unfortunately I can not upgrade to v7.0.0 beta, because of the following issue:

I hope this issue to be fixed soon.

1 Like

Just to clarify, will this be available in all Katalon versions as of V7 or is this a KSE only feature?