---
title: "init(log:)"
framework: os
role: symbol
role_heading: Initializer
path: "os/ossignpostid/init(log:)"
---

# init(log:)

Creates a signpost ID for the specified log.

## Declaration

```swift
init(log: OSLog)
```

## Parameters

- `log`: The log that you’re writing signposted events to.

## See Also

### Creating a Signpost Identifier

- [init(_:)](os/ossignpostid/init(_:).md)
- [init(log:object:)](os/ossignpostid/init(log:object:).md)
