How to remove excess logs in Katalon 10 and Selenium 4?

Hello,

I migrated my scripts to Katalon 10 / Selenium 4.
Since then, I have a lot more useless logs in the execution console, like those ones:

déc. 13, 2024 10:31:40 AM com.kms.katalon.core.logging.KeywordLogger startTest
déc. 13, 2024 10:31:43 AM com.kms.katalon.core.logging.KeywordLogger logWarning
déc. 13, 2024 10:32:25 AM com.kms.katalon.core.logging.KeywordLogger endTest
déc. 13, 2024 10:32:25 AM com.kms.katalon.core.logging.KeywordLogger endSuite

My log.properties file hasn’t changed:

logging.level.testcase=ERROR
logging.level.com.kms=ERROR

I already removed lots of log by setting the Chrome driver log level to 3:

options.addArguments("log-level=3")

How can I remove “startTest”, “endTest”, “endSuite” and other log from com.kms.katalon.core.logging.KeywordLogger?

Thanks in advance for your help.

1 Like

The format of this log record looks strange. It is different from the format Katalon Studio usually applies. It seems to me that your Katalon Studio installation is somewhat broken.

Please check if you have the following file found?
<Katalon Studio installation directory>/Contents/Eclipse/configuration/resources/logback/logback-console.xml

If yes, does it look like this? or different?

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <target>System.out</target>
    <filter class="com.kms.katalon.core.logging.logback.SystemOutFilter" />
    <encoder>
      <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %-40.40logger{39} - %msg{}%n</pattern>
    </encoder>
  </appender>
  <appender name="STDERR" class="ch.qos.logback.core.ConsoleAppender">
    <target>System.err</target>
    <filter class="com.kms.katalon.core.logging.logback.SystemErrFilter" />
    <encoder>
      <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %-40.40logger{39} - %msg{}%n</pattern>
    </encoder>
  </appender>

  <!-- internal APIs -->
  <logger name="com.kms" level="info" />
  <logger name="cucumber.runtime.formatter.CucumberReporter" level="debug" />
  <logger name="com.kms.katalon.core.logging.KeywordLogger" level="trace" />
  <logger name="com.kms.katalon.core.util.KeywordUtil" level="trace" />
  
  <!-- test case scripts -->
  <logger name="testcase" level="debug" />
  
  <!-- generated CustomKeywords file -->
  <logger name="CustomKeywords" level="debug" />
  
   <!-- built-in keywords -->
  <logger name="com.kms.katalon.core.keyword.builtin.CommentKeyword" level="info" />
  
  <root level="error">
    <appender-ref ref="STDOUT" />
    <appender-ref ref="STDERR" />
  </root>
</configuration>

Hello @kazurayam,

thank you for your answer.

The contents of my logback-console.xml file are the same as yours.

I changed the contents to:

<logger name="com.kms.katalon.core.logging.KeywordLogger" level="info" />

or

<logger name="com.kms.katalon.core.logging.KeywordLogger" level="error" />

but it does not change anything.

I always get lots of log like:

déc. 13, 2024 3:05:11 PM com.kms.katalon.core.logging.KeywordLogger logRunData
INFOS: browser = Chrome 131.0.0.0
déc. 13, 2024 3:05:11 PM com.kms.katalon.core.logging.KeywordLogger logRunData
INFOS: platform = Windows 11

Let me show you my previous research how to customize the log on Katalon Studio v8.3.0:

I have no more to say.

1 Like

Salut @etienne.jacquemoud ,

This is an issue introduced with Katalon 10 and acknowledged by the Katalon team. They plan to fix it in a future release. Unfortunately, not yet fixed in 10.0.1 (I just checked).
See Katalon v10.0 - console log colors not respecting settings

2 Likes

Thanks @kazurayam, I’ll have a look!

Hi @joost.degeyndt,

thank you for your answer. I’ll wait for a fix in KS then.

1 Like

Hi folks, :wave:

Thank you @joost.degeyndt for mentioning the upcoming fix from the Studio team. We’ll make sure to update you guys here when it’s released. In the meantime, we’ll close this thread up.

Should @etienne.jacquemoud have any other questions regarding other functions of Studio, please feel free to create a new thread.

Thanks,
Albert

1 Like

This topic was automatically closed after 17 hours. New replies are no longer allowed.