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

Supported in iOS Supported in Android

Description

The device log will be written to the path provided by the user.

Parameters

  • Filepath: Path to file or directory to which the log will be written. Provideing a directory is mandetory; If no file name is provided, a default .log file will be created.

 

Usage

 All available log at the time the command is called will be written to the file, and then each new line in the log will be written to the file until one of the following events happen:

  • StopLoggingDevice is called.
  • The test ends (and the device is released).
  • The device is out of focus.
  • StartLoggingDevice is called again and logging is restarted in a new file.


Code Examples

Java Example
client.startLoggingDevice("c:\\logs");
client.stopLoggingDeviced();
C# Example
client.StartLoggingDevice("c:\\logs");
client.StopLoggingDeviced();
VBScript Example
client.StartLoggingDevice "C:\\Logs"
client.StopLoggingDevice 
Python Example
self.client.startLoggingDevice("C:\\Logs")

self.client.stopLoggingDevice()
Perl Example
$client->startLoggingDevice("C:\\Logs");
$client->stopLoggingDevice();
  • No labels