markLogProtected method
- String logPath
Marks a GM log as protected to prevent automatic deletion.
This flag stops the system from removing the file during cleanup or retention-based pruning. Only GM logs are supported by this operation.
Parameters
logPath: The path to the GM file to mark as protected.
Returns
- GemError.success when the operation succeeds.
- GemError.general when the operation fails.
See also:
- protectedLogsList — Retrieves the list of protected logs.
Implementation
GemError markLogProtected(final String logPath) {
final OperationResult resultString = objectMethod(
pointerId,
'RecorderBookmarks',
'markLogProtected',
args: logPath,
);
return GemErrorExtension.fromCode(resultString['result']);
}