Switch from NSLog to os.log for AlphaWalletTrackAPICalls

pull/7097/merge
Hwee-Boon Yar 5 months ago
parent baa7e46268
commit 81ea2e7c57
  1. 5
      modules/AlphaWalletTrackAPICalls/AlphaWalletTrackAPICalls/Logger.swift

@ -1,7 +1,10 @@
// Copyright © 2022 Stormbird PTE. LTD.
import Foundation
import os.log
private let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "trackAPICalls")
func infoLog(_ message: Any, callerFunctionName: String = #function) {
NSLog("\(message) from: \(callerFunctionName)")
logger.info("\(String(describing: message)) from: \(callerFunctionName)")
}

Loading…
Cancel
Save