<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/OSSignposter/init(logger:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os12OSSignposterV6loggerAcA6LoggerV_tcfc"
  },
  "title" : "init(logger:)"
}
-->

# init(logger:)

Creates a signposter that uses the subsystem and category of an existing logger.

```
init(logger: Logger)
```

## Parameters

`logger`

The logger that provides a subsystem and category for the signposter to use. For more information, see [`Logger`](/documentation/os/Logger).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)