<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.0.0",
    "iPadOS: 13.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 12.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/MXMetricManager/makeLogHandle(category:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MXMetricManager(cm)makeLogHandleWithCategory:"
  },
  "title" : "makeLogHandle(category:)"
}
-->

# makeLogHandle(category:)

Returns a log handle used for writing custom metric events.

```
class func makeLogHandle(category: String) -> OSLog
```

## Parameters

`category`

A developer-specified string containing the name of the category of custom metrics written to the log.

## Return Value

A customized <doc://com.apple.documentation/documentation/os/OSLog> object used for writing custom metrics of the same category.

## Discussion

The object returned by this method saves only custom signpost metrics. Other kinds of <doc://com.apple.documentation/documentation/os/os_log> messages aren’t persisted.

---

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)