<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "OSLog"
    ],
    "preciseIdentifier" : "c:@E@OSLogEntryStoreCategory"
  },
  "title" : "OSLogEntry.StoreCategory"
}
-->

# OSLogEntry.StoreCategory

A classification of how the entry was to be stored and rotated at the point when it was created.

```
enum StoreCategory
```

## Overview

The unified logging system keeps entries in one of two locations: a ring buffer in memory, or a persisted data store. Entries rotate out to free up resources; they are rotated out in bulk according to heuristics based on space, time, and entry classification.

## Topics

### Constants

[`OSLogEntry.StoreCategory.undefined`](/documentation/OSLog/OSLogEntry/StoreCategory-swift.enum/undefined)

This entry’s purpose is unknown.

[`OSLogEntry.StoreCategory.metadata`](/documentation/OSLog/OSLogEntry/StoreCategory-swift.enum/metadata)

This entry was generated as information about the other entries or about the sequence of entries as a whole.

[`OSLogEntry.StoreCategory.shortTerm`](/documentation/OSLog/OSLogEntry/StoreCategory-swift.enum/shortTerm)

This entry was not intended to be long-lived, and was captured in the ring buffer.

[`OSLogEntry.StoreCategory.longTermAuto`](/documentation/OSLog/OSLogEntry/StoreCategory-swift.enum/longTermAuto)

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

[`OSLogEntry.StoreCategory.longTerm1`](/documentation/OSLog/OSLogEntry/StoreCategory-swift.enum/longTerm1)

The entry was tagged with a hint indicating the system should try to preserve it for approximately 1 day.

[`OSLogEntry.StoreCategory.longTerm3`](/documentation/OSLog/OSLogEntry/StoreCategory-swift.enum/longTerm3)

The entry was tagged with a hint indicating the system should try to preserve it for approximately 3 days.

[`OSLogEntry.StoreCategory.longTerm7`](/documentation/OSLog/OSLogEntry/StoreCategory-swift.enum/longTerm7)

The entry was tagged with a hint indicating the system should try to preserve it for approximately 7 days.

[`OSLogEntry.StoreCategory.longTerm14`](/documentation/OSLog/OSLogEntry/StoreCategory-swift.enum/longTerm14)

The entry was tagged with a hint indicating the system should try to preserve it for approximately 14 days.

[`OSLogEntry.StoreCategory.longTerm30`](/documentation/OSLog/OSLogEntry/StoreCategory-swift.enum/longTerm30)

The entry was tagged with a hint indicating the system should try to preserve it for approximately 30 days.



---

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)