prepareSystemLogs

abstract fun prepareSystemLogs(    destPath: String,     maxSize: Long,     includeAppLogs: Boolean): Boolean

Collect logs from the system and all connected secondary devices (if called from primary), optionally including ecosystem application logs from apps running on the system/secondaries, optionally limit the size of the collected logs, collate them into a single gzipped tarball file, and write them to a caller-supplied path.

If called from secondary, it will only include logs for that secondary.

The caller must "clean up" the file. This method may be called from a DeviceType.CONTROLLER device, see IPolyRoomService.getDeviceType().

To call this from a CONTROLLER device, call on an instance returned from targetLocal. The log files will be written on the secondary device and will only include the log files of the secondary device itself (not the primary system or any other connected secondary devices).

Return

true if successfully created log package

Parameters

destPath

Path where to create the logs

maxSize

Max size of logs in bytes (Currently this is ignored.)

includeAppLogs

Whether to include app logs