<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "OSLog",
  "identifier" : "/documentation/OSLog/OSLogEntry/StoreCategory-swift.enum/longTermAuto",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "OSLog"
    ],
    "preciseIdentifier" : "c:@E@OSLogEntryStoreCategory@OSLogEntryStoreCategoryLongTermAuto"
  },
  "title" : "OSLogEntry.StoreCategory.longTermAuto"
}
-->

# OSLogEntry.StoreCategory.longTermAuto

The entry was tagged with a hint indicating the system should try to preserve it based on the amount of space available.

```
case longTermAuto
```

## Discussion

Instead of tagging a hint with a number of days that the entry should be preserved, the `longTermAuto` case is preserved based on the amount of space available. Therefore, it will automatically make determinations on how long to preserve the entry. Entries using this case should be persisted in a filesystem-backed data store.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)