Skip to main content

SeeTestAutomation- StartLoggingDevice

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 .

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 Expand source

client.StartLoggingDevice("c:\\logs");
client.StopLoggingDeviced();

VBScript Example Expand source

client.StartLoggingDevice "C:\\Logs"
client.StopLoggingDevice

Python Example Expand source

self.client.startLoggingDevice("C:\\Logs")

self.client.stopLoggingDevice()

Perl Example Expand source

$client->startLoggingDevice("C:\\Logs");
$client->stopLoggingDevice();