Dlog
2022-05-20 本文已影响0人
Johnson_9d92
import Foundation
public func Dlog<T>(_ message: T, fileName: String = #file, methodName: String = #function, lineNumber: Int = #line)
{
#if DEBUG
let str = (fileName as NSString).pathComponents.last!.replacingOccurrences(of: "swift", with: "")
print(">>> \(str)\(methodName)[\(lineNumber)]: \(message)")
#endif
}