---
title: "init(subsystem:category:)"
framework: os
role: symbol
role_heading: Initializer
path: "os/ossignposter/init(subsystem:category:)-4vdri"
---

# init(subsystem:category:)

Creates a signposter that uses the specified subsystem and system-defined log category.

## Declaration

```swift
init(subsystem: String, category: OSLog.Category)
```

## Parameters

- `subsystem`: The string that identifies the subsystem that emits signposts. Typically, you use the same value as your app’s bundle ID. For more information, see doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/CFBundleIdentifier.
- `category`: The system-defined category, which the system uses to categorize emitted signposts. For possible values, see doc://com.apple.os/documentation/os/OSLog/Category.

## See Also

### Creating a Signposter

- [init()](os/ossignposter/init().md)
- [init(subsystem:category:)](os/ossignposter/init(subsystem:category:)-94xpb.md)
- [init(logger:)](os/ossignposter/init(logger:).md)
- [init(logHandle:)](os/ossignposter/init(loghandle:).md)
- [disabled](os/ossignposter/disabled.md)
