|
@@ -124,7 +124,7 @@ public func bf_getCurrentViewController() -> UIViewController? {
|
|
|
type = 3 : 文伟伟
|
|
|
|
|
|
*/
|
|
|
-public func BFLog<T>(_ type: Int = 1, _ file: String = #file, _ line: Int = #line, message: T) {
|
|
|
+public func BFLog<T>(_ type: Int = 0, _ file: String = #file, _ line: Int = #line, message: T) {
|
|
|
#if DEBUG
|
|
|
let filePath = (file as NSString).lastPathComponent
|
|
|
let dateFmt = DateFormatter()
|
|
@@ -136,6 +136,8 @@ public func BFLog<T>(_ type: Int = 1, _ file: String = #file, _ line: Int = #lin
|
|
|
print("ak-\(dateFmt.string(from: Date())) \(msg)")
|
|
|
} else if type == 3 {
|
|
|
print("ww-\(dateFmt.string(from: Date())) \(msg)")
|
|
|
+ } else {
|
|
|
+ print("\(dateFmt.string(from: Date())) \(msg)")
|
|
|
}
|
|
|
#else
|
|
|
// let filePath = (file as NSString).lastPathComponent;
|