---
title: OSLogEntry.StoreCategory
framework: OSLog
role: symbol
role_heading: Enumeration
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
---

# OSLogEntry.StoreCategory

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

## Declaration

```swift
enum StoreCategory
```

## Overview

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](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.longTermAuto](oslog/oslogentry/storecategory-swift.enum/longtermauto.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)

### Initializers

- [init(rawValue:)](oslog/oslogentry/storecategory-swift.enum/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Accessing Store Categories

- [storeCategory](oslog/oslogentry/storecategory-swift.property.md)
