Use this tag with questions about CocoaLumberjack, an open-source logging framework for iPhone and Mac.
Questions tagged [cocoalumberjack]
124 questions
6
votes
2 answers
CocoaLumberjack and NSLog in other libraries
I'm using CocoaLumberjack for all the logging in my app. Using this I can log straight to a file by using DDLogVerbose(...) or any of the available variants.
I'm also using fmdb (SQLite wrapper). The problem is that this library uses NSLog() and…

Julian
- 8,808
- 8
- 51
- 90
5
votes
1 answer
'LOG_INFO' macro redefined warning after moved project to swift bridging project
I got several warnings like these:
Swift compiler warning:
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
/Myfolder/Pods/Headers/CocoaLumberjack/DDLog.h:176:9: 'LOG_INFO' macro…

angelokh
- 9,426
- 9
- 69
- 139
5
votes
0 answers
CocoaLumberjack Not Logging
I'm trying to integrate CocoaLumberjack into an existing project (so that I can get better logging on a customer's machine who is reporting a bug I can't duplicate). I've successfully built a sample project and got it to work in that, but it seems…

Chuck
- 4,662
- 2
- 33
- 55
4
votes
1 answer
CocoaLumberjack.h file not found?
Actually my project does compile for an iPhone 6s but not for any iOS simulators. When I want to build for a simulator I get two build time errors.
Errors
'CocoaLumberjack/CocoaLumberjack.h' file not found
and
failed to emit precompiled header…

Marcel Hofgesang
- 951
- 1
- 15
- 36
4
votes
2 answers
Lumberjack iOS: How to write encrypted logs (Block Encryption)
I'm using Lumberjack as logging platform (Objective C/Swift)
Is there any way to write the logs to file as encrypted?
If yes, then any example would be useful
Also, how to read the encrypted logs afterwards
Are there different type of encryption…

Ilan Levy
- 191
- 1
- 2
- 11
4
votes
3 answers
Integrating CocoaLumberjack into iOS Project via Drag-and-Drop
I'm trying to integrate CocoaLumberjack into my iOS project by dragging-and-dropping the Lumberjack.Xcode file into my project. That works fine, but now my project has 9 new targets. I don't need all of that overhead. So my question is, how do I cut…

Henry F
- 4,960
- 11
- 55
- 98
4
votes
2 answers
DDLog(CocoaLumberjack) message in console
I want to replace NSLog with CocoaLumberjack, and I follow the GettingStarted, then add
DDLogError(@"This is an error.");
DDLogWarn(@"This is a warning.");
DDLogInfo(@"This is just a message.");
DDLogVerbose(@"This is a verbose message.");
but…

Mil0R3
- 3,876
- 4
- 33
- 61
3
votes
0 answers
Getting "Include of non-modular header inside framework module" after update cocoalumberjack to 3.6.0
I have installed CocoaLumberjack via cocoapods, because the XMPPFramework add dependency. After updated CocoaLumerjack to the newest version 3.6.0, I got a fatal message:Include of non-modular header inside framework module…

roger Y
- 31
- 1
3
votes
0 answers
CocoaLumberjack - File rolling when maximum file size is exceeded not working
I want to set up logging which creates a new file once the original file exceeds 1MB, up to a maximum of 5 files.
The issue is that currently I'm seeing the log file far exceeds 1MB and doesn't create a new file.
I'm using Objective C with…

katy
- 56
- 6
3
votes
1 answer
Creating sub system and category for Cocoa Lumberjack os logging
Apple documentation says it provides a way to define a category under a subsystem for filtering logs specific to that category (https://developer.apple.com/documentation/os/1643744-os_log_create?language=objc). I looked up the Cocoa Lumberjack…

learn_develop
- 1,735
- 4
- 15
- 33
3
votes
0 answers
MagicalRecord not using CocoaLumberJack
I want to add verbose logging to MagicalRecord to try and capture any errors that are happening as I’ve had a couple of users report data loss.
I have followed the instructions here:…

lewis
- 2,936
- 2
- 37
- 72
3
votes
1 answer
Fine Grained Logging when using CocoaLumberJack in Swift
I want to be able to open debug logging level for a specific file in my iOS application. We are using CocoaLumberJack in Swift as the logging framework. According to the documentation, this is possible in Objective C, but I could not find any…

Omer Levi Hevroni
- 1,935
- 1
- 15
- 33
3
votes
1 answer
compiling cocoa lumberjack with Xcode 8.3.2 results in errors in DDOSLogger.m
Trying to build cocoa lumberjack/swift via cocoa pods.
Compiling the latest tag 3.2.0 ends up with errors in DDOSLogger.m
Here a sample:
.../Pods/CocoaLumberjack/Classes/DDOSLogger.m:68:17: error: static_assert failed…

morgman
- 567
- 5
- 14
3
votes
3 answers
How to manually remove Cocoalumberjack log
I am using CocoaLumberjack V2.4 to save log into file.
This is the default code to set saving log into file:
DDFileLogger *fileLogger = [[DDFileLogger alloc] init]; // File Logger
fileLogger.rollingFrequency = 60 * 60 * 24; // 24 hour…

xiaoyaoworm
- 1,052
- 4
- 13
- 32
3
votes
0 answers
While installing DIComm library through Podspec getting file not found error?
While installing DIComm library through Podspec getting file not found error on cocoa lumberjack library, please help me out to add that in header search path or any other solution from your side.

sukhmeet
- 113
- 4