禁用在 XCode 9 中调用 NSLog 时出现在调试器控制台中的时间戳



如何在调用 NSLog() 时禁用或隐藏调试器控制台中的时间戳。

/** LOG to see AFF_FLOW*/
func showLog(classname:String , tagName:String){
    NSLog("APP_FLOW -- (classname)--> (tagName)")
}

使用 print()短期解决方案

/* LOG to see AFF_FLOW*/
func showLog(classname:String , tagName:AnyObject){
    print("APP_FLOW -- (classname)--> (tagName) n")
}

最新更新