17 lines
521 B
Swift
17 lines
521 B
Swift
//
|
|
// DDSwiftLog.swift
|
|
// DDLogKit_Private
|
|
// Created by DDIsFriend on 2023/2/7.
|
|
|
|
|
|
import Foundation
|
|
|
|
public func DDLog<N>(message:N,fileName:String = #file,methodName:String = #function,lineNumber:Int = #line){
|
|
#if DEBUG
|
|
// print("\(fileName as NSString)\n方法:\(methodName)\n行号:\(lineNumber)\n打印信息\(message)")
|
|
print("[函数名:\(fileName as NSString) - \(methodName)]\n[内容:\(message)]")
|
|
// NSLog("[函数名:\(fileName as NSString) - \(methodName)]\n[内容:\(message)]")
|
|
#endif
|
|
}
|
|
|