瀏覽代碼

1.update log

wenweiwei 3 年之前
父節點
當前提交
97a5771503
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      BFCommonKit/Classes/BFUtility/PQCommonMethodUtil.swift

+ 3 - 1
BFCommonKit/Classes/BFUtility/PQCommonMethodUtil.swift

@@ -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;