     }
 
     /// Option: desired maximum time in seconds stored in a log file, if 0, no maximum (log files may exceed this, it's a guideline only)
-    open var targetMaxTimeInterval: TimeInterval = AutoRotatingFileDefaultMaxTimeInterval {
+    open var targetMaxTimeInterval: TimeInterval = autoRotatingFileDefaultMaxTimeInterval {
         didSet {
             if targetMaxTimeInterval < 1 {
                 targetMaxTimeInterval = 0

    }

    // MARK: - Life Cycle
    public init(owner: XCGLogger? = nil, writeToFile: Any, identifier: String = "", shouldAppend: Bool = false, appendMarker: String? = "-- ** ** ** --", maxFileSize: UInt64 = AutoRotatingFileDefaultMaxFileSize, maxTimeInterval: TimeInterval = AutoRotatingFileDefaultMaxTimeInterval, archiveSuffixDateFormatter: DateFormatter? = nil) {
        super.init(owner: owner, writeToFile: writeToFile, identifier: identifier, shouldAppend: true, appendMarker: shouldAppend ? appendMarker : nil)

        currentLogStartTimeInterval = Date().timeIntervalSince1970


import Foundation

// MARK: - AutoRotatingFileDestination
/// A destination that outputs log details to files in a log folder, with auto-rotate options (by size or by time)
open class AutoRotatingFileDestination: FileDestination {
    // MARK: - Constants
    static let autoRotatingFileDefaultMaxFileSize: UInt64 = 1_048_576
    static let autoRotatingFileDefaultMaxTimeInterval: TimeInterval = 600

    // MARK: - Properties
    /// Option: desired maximum size of a log file, if 0, no maximum (log files may exceed this, it's a guideline only)
    open var targetMaxFileSize: UInt64 = autoRotatingFileDefaultMaxFileSize {
        didSet {
            if targetMaxFileSize < 1 {
                targetMaxFileSize = .max
