     
     private lazy var dateFormatter: DateFormatter = {
         let formatter = DateFormatter()
-        formatter.dateFormat = "yyyy-MM-dd-HH-mm"
+        switch fileTime {
+        case .dateBased:
+            formatter.dateFormat = "yyyy-MM-dd"
+        case .minuteBased:
+            formatter.dateFormat = "yyyy-MM-dd-HH-mm"
+        }
         return formatter
     }()
     

        
        do {
            try FileManager.default.createDirectory(at: path, withIntermediateDirectories: true, attributes: nil)
        } catch let error as NSError {
            print("Create logs folder error \(error)")
        }
    }

        case number(Int)
    }
    
    public enum FileTime {
        case minuteBased
        case dateBased
    }
    
    private var fileHandle: FileHandle!
    private let saveInDirectory: FileManager.SearchPathDirectory
    private let appGroup: String?
