isProtected property

bool get isProtected

Whether the log file is marked as protected from automatic deletion.

Protected logs are preserved even when automatic cleanup of old logs is performed due to space or retention settings.

Returns

  • true when the log is protected; otherwise false.

Implementation

bool get isProtected {
  final OperationResult resultString = objectMethod(
    pointerId,
    'LogMetadata',
    'isProtected',
  );
  return resultString['result'];
}