Dlog

作者: Johnson_9d92 | 来源:发表于2022-05-20 21:15 被阅读0次
    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
    }
    
    

    相关文章

      网友评论

          本文标题:Dlog

          本文链接:https://www.haomeiwen.com/subject/repnurtx.html