---
title: OSLogStore
framework: OSLog
role: symbol
role_heading: Class
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/oslogstore
---

# OSLogStore

A set of entries from the unified logging system.

## Declaration

```swift
class OSLogStore
```

## Overview

Overview Instances of this class represent a fixed range of entries and may be backed by a logarchive or your Mac’s local store. In Swift, Use the getEntries(with:at:matching:) function to retrieve a filtered array of log entries. In Objective-C, use instances of this class to create OSLogEnumerator objects. One store can support multiple OSLogEnumerator instances concurrently.

## Topics

### Creating Log Stores

- [init(url:)](oslog/oslogstore/init(url:)-5v3w7.md)
- [local()](oslog/oslogstore/local().md)

### Accessing Position

- [position(date:)](oslog/oslogstore/position(date:).md)
- [position(timeIntervalSinceEnd:)](oslog/oslogstore/position(timeintervalsinceend:).md)
- [position(timeIntervalSinceLatestBoot:)](oslog/oslogstore/position(timeintervalsincelatestboot:).md)

### Accessing Entries

- [getEntries(with:at:matching:)](oslog/oslogstore/getentries(with:at:matching:).md)

### Initializers

- [init()](oslog/oslogstore/init().md)
- [init(scope:)](oslog/oslogstore/init(scope:).md)
- [init(URL:)](oslog/oslogstore/init(url:)-5nhb2.md)

### Enumerations

- [OSLogStore.Scope](oslog/oslogstore/scope.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Read Log Entries

- [OSLogEnumerator](oslog/oslogenumerator.md)
