mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-21 11:26:15 +02:00
19 lines
426 B
Swift
19 lines
426 B
Swift
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import SwiftRs
|
|
import Tauri
|
|
import UIKit
|
|
import os.log
|
|
|
|
@_cdecl("tauri_log")
|
|
func log(level: Int, message: NSString) {
|
|
switch level {
|
|
case 1: Logger.debug(message as String)
|
|
case 2: Logger.info(message as String)
|
|
case 3: Logger.error(message as String)
|
|
default: break
|
|
}
|
|
}
|