added debug logic
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
5cda9843d1
commit
0f6a80a3be
@ -9,6 +9,14 @@ import Foundation
|
||||
import UIKit
|
||||
|
||||
|
||||
public func DebugLog(_ message: String, file: String = #file, line: Int = #line, function: String = #function) {
|
||||
#if DEBUG
|
||||
let path = (file as NSString).lastPathComponent
|
||||
// using print because NSLog crashes when passing certain optionals
|
||||
print("[\(path)] \(function) [Line \(line)] : \(message)")
|
||||
#endif
|
||||
}
|
||||
|
||||
/// Bundle Manager keeps all bundles together for ease of use for searching within any of them for a specific asset
|
||||
public class BundleManager {
|
||||
public static var shared = BundleManager()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user