mirror of
https://github.com/nicoverbruggen/NVAppUpdater.git
synced 2025-08-07 17:50:07 +02:00
Add UpdateCheck and some supporting code
This commit is contained in:
16
Sources/AppUpdater/Support/Log.swift
Normal file
16
Sources/AppUpdater/Support/Log.swift
Normal file
@ -0,0 +1,16 @@
|
||||
//
|
||||
// Created by Nico Verbruggen on 30/05/2024.
|
||||
// Copyright © 2024 Nico Verbruggen. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
open class Log {
|
||||
public static func text(_ text: String) {
|
||||
self.handler(text)
|
||||
}
|
||||
|
||||
public static var handler: (_ text: String) -> Void = { text in
|
||||
print(text)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user