import HexCore import OSLog enum DiagnosticsLogging { private static var isBootstrapped = false private static let logger = Logger(subsystem: HexLog.subsystem, category: "Diagnostics") static func bootstrapIfNeeded() { guard !isBootstrapped else { return } logger.notice("Diagnostics logging initialized") isBootstrapped = true } }