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.
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).
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]”
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: