Skip to main content

StartLoggingDevice

Description​

Use this command to start the device log. It is written to path specified. Use StopLoggingDevice to stop the log.

Parameters​

NameTypeDescription
FilepathStringPath to file or directory to which the log will be written.



Directory is mandatory. If file is not provided, default.log is created.

Usage​

info

Replace <server> with the appropriate URL.

Example

StartLoggingDevice

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...

//Start Logging Command
seetest.startLoggingDevice("c:\\logs");