---
title: local()
framework: OSLog
role: symbol
role_heading: Type Method
platforms: [macOS 10.15+]
path: oslog/oslogstore/local()
---

# local()

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

## Declaration

```swift
class func local() throws -> Self
```

## Discussion

Discussion Gaining access to the local unified logging system requires permission from the system. The caller must be run by an admin account and have the com.apple.logging.local-store entitlement.

## See Also

### Creating Log Stores

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