<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/MetricManager/logHandle(category:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "s:9MetricKit0A7ManagerC9logHandle8categorySo06OS_os_D0CSS_tFZ"
  },
  "title" : "logHandle(category:)"
}
-->

# logHandle(category:)

Returns an `OSLog` handle for creating custom signpost metrics that MetricKit aggregates.

```
static func logHandle(category: String) -> OSLog
```

## Discussion

The method signature and return type are identical; only the type name changes.

```swift
let log = MetricManager.logHandle(category: "rendering")
```

---

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)