新建一个.swift. 实现方法
import UIKit
func ARLog(_ value: Any... , fileName : String = #file,function : String = #function, line : Int32 = #line ){
#if DEBUG
print("文件名称:\((fileName as NSString).lastPathComponent) Function: \(function) Line:\(line)")
print("调试信息:\(value)")
print("============================================")
#endif
}