Class

OSLogStore

A set of entries from the unified logging system.

Declaration

@interface OSLogStore : NSObject

Overview

Instances of this class represent a fixed range of entries and may be backed by a logarchive or your Mac's local store. Instances of this class are also used to create OSLogEnumerator objects. One store can support multiple OSLogEnumerator instances concurrently.

Topics

Creating Log Stores

+ storeWithURL:error:

Creates a log store based on a log archive.

+ localStoreAndReturnError:

Creates a log store representing the Mac's local store.

Accessing Position

- positionWithDate:

Returns a position representing the time specified.

- positionWithTimeIntervalSinceEnd:

Returns a position representing time since the end of the time range that the entries span.

- positionWithTimeIntervalSinceLatestBoot:

Returns a position representing time since the last boot in the series of entries.

Accessing Entries

- entriesEnumeratorAndReturnError:

Returns a log enumerator with default options for viewing the entries.

- entriesEnumeratorWithOptions:position:predicate:error:

Returns a log enumerator based on an underlying store.

Relationships

Inherits From

See Also

Read Log Entries

OSLogEnumerator

An enumerator that can access and list log entries.