Has anybody created a cross platform logger for Ke...
# touchlab-tools
t
Has anybody created a cross platform logger for Kermit like DDFileLogger from CocoaLumberjack? The file rolling feature is nice.
k
I actually just wrote something like this for a cli project, but without I'm sure many of the features of the tool. Is there a summary of features you're looking for?
t
Basically just log to file and be able to have the files roll at a reasonable rate for a number of days. Our configuration for DDFileLogger looks like this:
Copy code
public static var fileLogger: DDFileLogger? = {
    var fileLogger: DDFileLogger? = DDFileLogger()
    fileLogger?.rollingFrequency = TimeInterval(60 * 60 * 24) // 24 hour rolling
    fileLogger?.logFileManager.maximumNumberOfLogFiles = 7;
    return fileLogger
}()