 //  Copyright (c) 2014 Vluxe. All rights reserved.
 //
 //  Simple logging class.
+//////////////////////////////////////////////////////////////////////////////////////////////////
 
 import Foundation
 

        return Static.instance
    }
    ///write content to the current log file.
    public func write(text: String) {
        
    }
    ///check the size of a file
    func fileSize(path: String) -> Int {

            return size
        }
        return 0
    }
    
    ///Recursive method call to rename log files
    func rename(index: Int) {
        let fileManager = NSFileManager.defaultManager()
        let path = "\(directory)/\(logName(index))"
        let newPath = "\(directory)/\(logName(index+1))"
        if fileManager.fileExistsAtPath(newPath) {
            rename(index+1)
        }
        fileManager.moveItemAtPath(path, toPath: newPath, error: nil)
    }
    
    ///gets the log name
    func logName(num :Int) -> String {
        return "\(name)-\(num).log"
    }
    
    ///get the default log directory
