     
     ///gets the log name
     func logName(_ num :Int) -> String {
-        return "\(name)-\(num)\(logFileExtension)"
+        return "\(name)-\(num)\(getExtension())"
     }
     
     ///get the default log directory

    //The date format of the log time.
    open var logDateFormat = "";
    
    // Log file extension
    open var logFileExtension = ".log"
    
    ///logging singleton
    open class var logger: Loggly {

            logJson.setValue(text, forKey: "LogMessage")
            return "\(logJson.jsonString.replacingOccurrences(of: "\n", with: ""))\(isDelimiter ?"\n":"")"
        }
        return "[\(logTypeName(type, isEmojis: enableEmojis)) \(dateStr)]: \(text)\(isDelimiter ?"\n":"")"
    }
    
    ///write content to the current log file.
