Page tree
Skip to end of metadata
Go to start of metadata



SetLogger(level)

Supported in iOS Supported in Android

Description

Changes the logging level

Parameters

  • level : Any of the following standard levels is applicable ALLDEBUGINFOWARNERRORFATAL, OFF (FATAL and WARN levels not supported in C#)

Note:  This command can be used only from the testing framework. It is not available in the user interface.


Code Examples

Java
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#
int level = Logger.GetInstance().INFO;
Logger.GetInstance().loggerMode= level;
  • No labels