Reducing log level for the LogViewer

I found a thing.

In my katalon studio project on verion 5.10.0, I edited Include/config/log.properties as follows:

logging.level.testcase=INFO

then I ran the same test case above and got the following output in the Console:

SLF4J: The requested version 1.7.16 by your slf4j binding is not compatible with [1.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
2018-12-21 12:59:03.136 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor   -e[0;39m e[39m--------------------e[0;39m
2018-12-21 12:59:03.139 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor   -e[0;39m e[39mSTART Test Cases/TestObjectTransformerTeste[0;39m
source is {"objectId":"Object Repository/Page_15801_testbed/button_foo",[{"name":"tag","conditionType":"equals","value":"button","isActive":"true"},{"name":"type","conditionType":"equals","value":"button","isActive":"true"},{"name":"id","conditionType":"equals","value":"staticId1:dynamicId:staticId2","isActive":"true"},{"name":"text","conditionType":"equals","value":"foo","isActive":"true"}]}
2018-12-21 12:59:05.442 e[31mWARN e[0;39m e[36mc.k.katalon.core.logging.KeywordLogger   -e[0;39m e[39mPlease use "KeywordUtil.logInfo()" instead of "new KeywordLogger()" constructor. "KeywordLogger" is an internal API and might be changed in the future.e[0;39m
2018-12-21 12:59:05.448 e[34mINFO e[0;39m e[36mk.k.c.m.CustomKeywordDelegatingMetaClass -e[0;39m e[39mmy.TestObjectTransformer.toMyFavoritesXPath is PASSEDe[0;39m
target is {"objectId":"Object Repository/Page_15801_testbed/button_foo",[{"name":"tag","conditionType":"equals","value":"button","isActive":"true"},{"name":"type","conditionType":"equals","value":"button","isActive":"true"},{"name":"id","conditionType":"equals","value":"staticId1:dynamicId:staticId2","isActive":"true"},{"name":"text","conditionType":"equals","value":"foo","isActive":"true"}]}
2018-12-21 12:59:06.894 e[34mINFO e[0;39m e[36mc.k.katalon.core.main.TestCaseExecutor   -e[0;39m e[39mEND Test Cases/TestObjectTransformerTeste[0;39m

The number of lines were drastically reduced. The test case ran far quicker.

log.properties seconds
empty 12
With “logging.level.testcase=INFO” 6

Wow!

3 Likes