SeeTestAutomation- SetLogger
info
Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .
SetLogger(level)
Description
Changes the logging level
Parameters
- level : Any of the following standard levels is applicable ALL, DEBUG, INFO, WARN, ERROR, FATAL, OFF (FATAL and WARN levels not supported in C#)
info
Note: This command can be used only from the testing framework. It is not available in the user interface.
Code Examples
Java Expand source
import org.junit.*;
public class TestExample {
private Client client;
@Before
public void setUp(){
...
client.setLogger(Utils.initDefaultLogger(Level.WARN));
}
@Test
public void testCase(){
//TODO: Your test code here
}
@After
public void tearDown(){
client.releaseClient();
}
}
C# Expand source
int level = Logger.GetInstance().INFO;
Logger.GetInstance().loggerMode= level;