You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I look in my device's AppData/Library/Caches/Logs directory, I have four separate log files—one for each of the default levels (Error, Warn, Info, Verbose). I want them all in the same file. How do I do that?
The text was updated successfully, but these errors were encountered:
@bpoplauschi That's what I thought too, here's what I've got:
DDFileLogger *fileLogger = [[DDFileLogger alloc] initWithLogFileManager:logFileManager];
fileLogger.maximumFileSize = 1024 * 32; // 32k max log file size
fileLogger.rollingFrequency = 60 * 60 * 24; // 24 hour rolling
fileLogger.logFileManager.maximumNumberOfLogFiles = 8;
[DDLog addLogger:fileLogger];
DDLogError(@"Congratulations, you can see Error logs!");
DDLogWarn(@"Congratulations, you can see Warn logs!");
DDLogInfo(@"Congratulations, you can see Info logs!");
DDLogVerbose(@"Congratulations, you can see Verbose logs!");
When I say fileLogger.logFileManager.maximumNumberOfLogFiles = 8; I get four separate log files with one of those "Congratulations..." lines each. When I say fileLogger.logFileManager.maximumNumberOfLogFiles = 1; I get only one file with the "Congratulations... Error logs!" line. The above code is in a class method called from application:didFinishLaunching:withOptions.
I'm configuring my logging like this:
When I look in my device's
AppData/Library/Caches/Logs
directory, I have four separate log files—one for each of the default levels (Error, Warn, Info, Verbose). I want them all in the same file. How do I do that?The text was updated successfully, but these errors were encountered: