Contents

logHandle(category:)

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

Declaration

static func logHandle(category: String) -> OSLog

Mentioned in

Discussion

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

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

This method replaces makeLogHandle(category:).