Has anybody created a cross platform logger for Kermit like DDFileLogger from CocoaLumberjack? The file rolling feature is nice.
k
kpgalligan
06/11/2024, 7:09 PM
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
Trey
06/11/2024, 8:59 PM
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
}()