2021-02-19 08:28:05 -07:00
|
|
|
//
|
|
|
|
// ReactLogger.swift
|
|
|
|
// Cuvent
|
|
|
|
//
|
|
|
|
// Created by Marc Rousavy on 15.12.20.
|
|
|
|
// Copyright © 2020 Facebook. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2021-03-17 09:37:31 -06:00
|
|
|
let context = "VisionCamera"
|
2021-02-19 08:28:05 -07:00
|
|
|
|
2021-03-09 02:53:29 -07:00
|
|
|
// MARK: - ReactLogger
|
|
|
|
|
2021-02-19 08:28:05 -07:00
|
|
|
enum ReactLogger {
|
2021-03-19 08:53:19 -06:00
|
|
|
static func log(level: RCTLogLevel,
|
|
|
|
message: String,
|
|
|
|
_ file: String = #file,
|
|
|
|
_ lineNumber: Int = #line,
|
|
|
|
_ function: String = #function) {
|
|
|
|
RCTDefaultLogFunction(level, RCTLogSource.native, file, lineNumber as NSNumber, "\(context).\(function): \(message)")
|
2021-02-19 08:28:05 -07:00
|
|
|
}
|
|
|
|
}
|