Useful or not, from you.
CocoaLumberjack crash [DDLogFileFormatterDefault formatLogMessage:] + 592

New Issue Checklist

Issue Info

Info Value
Platform Name ios
Platform Version 12 - 14
CocoaLumberjack Version 3.7.0
Integration Method cocoapods
Xcode Version Xcode 12.1
Repro rate sometimes

crash [DDLogFileFormatterDefault formatLogMessage:] + 592

crash:cocoa.lumberjack.fileLogger
EXC_BAD_ACCESS KERN_PROTECTION_FAILURE 0x00000001087f725e
0 libsystem_malloc.dylib   tiny_free_list_add_ptr + 116
11 Foundation    -[NSDateFormatter stringForObjectValue:] + 176
12 DDFileLogger.m -[DDLogFileFormatterDefault formatLogMessage:] + 592
13 DDFileLogger.m -[DDFileLogger(Internal) lt_dataForMessage:] + 1298
14 DDFileLogger.m -[DDFileLogger logMessage:] + 1134
15 DDLog.m - [DDLog lt_log:]_block_invoke + 837
16 libdispatch.dylib _dispatch_call_block_and_release + 24
22 libsystem_pthread.dylib start_wqthread + 8

code

LogFileManagerCustom *fileManager = [[LogFileManagerCustom alloc] init];
DDFileLogger  *fileLogger = [[DDFileLogger alloc] initWithLogFileManager:fileManager]; // File Logger
fileLogger.rollingFrequency = 60 * 60 * 24;                 // 24 hour rolling
fileLogger.logFileManager.maximumNumberOfLogFiles = 4;      // max files count
fileLogger.maximumFileSize = 1.0 * 1024 * 1024;             // single file size(MB)
        
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
[dateFormatter setDateFormat:@"yyyy/MM/dd HH:mm:ss:SSS"];
fileLogger.logFormatter = [[DDLogFileFormatterDefault alloc] initWithDateFormatter:dateFormatter];
 [DDLog addLogger:fileLogger];
That's a useful answer
Without any help

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions.