---
title: OSLogEntry.StoreCategory.longTermAuto
framework: OSLog
role: symbol
role_heading: Case
platforms: [iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+, macOS 10.15+, tvOS 15.0+, visionOS 1.0+, watchOS 8.0+]
path: oslog/oslogentry/storecategory-swift.enum/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.

## Declaration

```swift
case longTermAuto
```

## Discussion

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.

## See Also

### Constants

- [OSLogEntry.StoreCategory.undefined](oslog/oslogentry/storecategory-swift.enum/undefined.md)
- [OSLogEntry.StoreCategory.metadata](oslog/oslogentry/storecategory-swift.enum/metadata.md)
- [OSLogEntry.StoreCategory.shortTerm](oslog/oslogentry/storecategory-swift.enum/shortterm.md)
- [OSLogEntry.StoreCategory.longTerm1](oslog/oslogentry/storecategory-swift.enum/longterm1.md)
- [OSLogEntry.StoreCategory.longTerm3](oslog/oslogentry/storecategory-swift.enum/longterm3.md)
- [OSLogEntry.StoreCategory.longTerm7](oslog/oslogentry/storecategory-swift.enum/longterm7.md)
- [OSLogEntry.StoreCategory.longTerm14](oslog/oslogentry/storecategory-swift.enum/longterm14.md)
- [OSLogEntry.StoreCategory.longTerm30](oslog/oslogentry/storecategory-swift.enum/longterm30.md)
