Files
gart/code/Hex-main/Hex/App/Diagnostics/DiagnosticsLogging.swift
T

14 lines
354 B
Swift
Executable File

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
}
}