A Helper for developing need. e.g. output console log for a better view.
Output informations for developers to get to know about parameters' value.
- filename: String This is a attribute where you use this functions to show you where the informations from.
- infoDic: [ String: Any ] This is a attribute for informations you want to output to console.
- needTime: Bool = false This is a attribute to choose whether you need to show timestamp under every filename.
DevHelper.log(
filename: "AAATableViewController",
infoDic: [
"Core Data Status": context?.description ?? "nil",
"Time": Date()
],
needTime: true
)
DevHelper.log(
filename: "AAATableViewController",
infoDic: [
"Core Data Status": context?.description ?? "nil",
"Time": Date()
]
)