fda232edcb
* Add WireGuard packages - Use eduVPN script for WireGuardKitGo - Wrap WireGuardKit entities into Configuration - Split demo into OpenVPN/WireGuard controllers * Rewrite README with multiple VPN protocols
14 lines
377 B
Swift
14 lines
377 B
Swift
// SPDX-License-Identifier: MIT
|
|
// Copyright © 2018-2021 WireGuard LLC. All Rights Reserved.
|
|
|
|
import Foundation
|
|
import os.log
|
|
|
|
public func wg_log(_ type: OSLogType, staticMessage msg: StaticString) {
|
|
os_log(msg, log: OSLog.default, type: type)
|
|
}
|
|
|
|
public func wg_log(_ type: OSLogType, message msg: String) {
|
|
os_log("%{public}s", log: OSLog.default, type: type, msg)
|
|
}
|