tauri-plugin-devtools 2.1.0

CrabNebula devtools for Tauri: Inspect, monitor, and understand your application with ease.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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

@_cdecl("devtools_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
  }
}