Is there a specific switch for changing the level of the console log? I.E. information, warning, error? It would be nice to be able to narrow down the console log when running a test suite in Console mode to only show errors/warnings.
Bump.
This would be very nice to have, as sometimes the Log Viewer can bog down script execution if, for instance, a Custom Keyword has many many steps involved (as ours commonly do).
Russ Thomas said:
Two Suggestions: Filtered Log Viewer and Filtered Console logs - Katalon Studio - Katalon Community
Thanks Russ, upvoted your post as well
Is this any good?
I use part of it in my scripts; I only really use OFF and INFO as I found that WARNING seems to still report INFO level :
import java.util.logging.Level
import java.util.logging.Logger
GlobalVariable.log = new KeywordLogger()
def strLogLogger = GlobalVariable.log.logger
//setting level options
strLogLogger.setLevel(Level.OFF)
strLogLogger.setLevel(Level.INFO)
strLogLogger.setLevel(Level.SEVERE)
strLogLogger.setLevel(Level.WARNING)
strLogLogger.setLevel(Level.CONFIG)
strLogLogger.setLevel(Level.FINE)
strLogLogger.setLevel(Level.FINER)
strLogLogger.setLevel(Level.FINEST)
strLogLogger.setLevel(Level.ALL)
//getting level
def strNewLevel = strLogLogger.getLevel().name
Hi Paul_Sinnott,
Do you have any solution for that? Are we able to set the level of console log under Project > Settings > Desired Capabilities?