14 lines
354 B
Swift
Executable File
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
|
|
}
|
|
}
|