markLogProtected method
- String logPath
Marks a gm log as protected.
This method prevents the specified log from being deleted automatically when the system reaches its maximum disk space or the configured retention time is met.
This only works with logs of type GM.
Parameters
- IN logPath The path to the file to be marked as protected.
Returns
- GemError.success If operation succeeds.
- GemError.general If operation fails.
Throws
- An exception if it fails
Implementation
GemError markLogProtected(final String logPath) {
final OperationResult resultString = objectMethod(
_pointerId,
'RecorderBookmarks',
'markLogProtected',
args: logPath,
);
return GemErrorExtension.fromCode(resultString['result']);
}