Use this tag with questions about CocoaLumberjack, an open-source logging framework for iPhone and Mac.
Questions tagged [cocoalumberjack]
124 questions
1
vote
1 answer
Link error for library added with CocoaPods
I added PaperTrailLumberjack to my project by adding the line pod 'PaperTrailLumberjack' to my Podfile.
I then ran the pod install command and got the following:
Analyzing dependencies
Downloading dependencies
Installing AFNetworking 2.1.0 (was…

pajevic
- 4,607
- 4
- 39
- 73
1
vote
1 answer
Lumberjack log DDLogInfo showing up as WARNING in console
I am using Lumberjack as my logging framework.
I have this definition…
#ifdef DEBUG
static const int ddLogLevel = LOG_LEVEL_DEBUG;
#else
static const int ddLogLevel = LOG_LEVEL_WARN;
#endif
and this is my log…

bdparrish
- 3,216
- 3
- 37
- 58
1
vote
3 answers
DDLog doen't output logs to Console.app
I write following code in application didFinishLaunchingWithOptions
[DDLog addLogger:[DDTTYLogger sharedInstance]];
[[DDTTYLogger sharedInstance] setColorsEnabled:YES];
[DDLog addLogger:[DDASLLogger sharedInstance]];
But, it doesn't send log to…

Masaru Kitajima
- 267
- 1
- 4
- 12
1
vote
2 answers
CocoaLumberjack Custom Log Levels
I've started using CocoaLumberjack and was interested in using their custom log levels feature. They have a handy config available at https://github.com/CocoaLumberjack/CocoaLumberjack/wiki/CustomLogLevels to get you started. I don't know exactly…

rob5408
- 2,972
- 2
- 40
- 53
1
vote
2 answers
Forcing to roll log files (now) synchronously in Lumberjack
I've a scenario where I want to force the log file to roll out (synchronously) even before the maxfilesize is reached so that I can upload the log to the server. I do see this public method rollLogFile that I can call. But this method puts the…

user2993985
- 11
- 2
1
vote
2 answers
DDLogCVerbose vs. DDLogVerbose
What are differences between DDLog(Error|Warn|Info|Verbose) and DDLogC(Error|Warn|Info|Verbose) in Cocoa Lumberjack?
The first calls LOG_OBJC_MAYBE, second LOG_C_MAYBE, but what is the exact difference?

Fishman
- 1,737
- 1
- 25
- 42
0
votes
1 answer
CocoaLumberjack/DDFileLogger.h' file not found
i'm new in swift. I tried to run a project, but i got an error "CocoaLumberjack/DDFileLogger.h not found". I installed package through SPM and it installed perfectly fine, but when i try to import this, it keeps giving me an error. My xcode version…
user15415235
0
votes
1 answer
iOS Swift : routing NSLog calls to file
is it possible to route all the NSLog calls from our iOS app and private frameworks into a single file easily.
Like redefining NSLog to something else ?

Stéphan Bordera
- 1
- 1
0
votes
1 answer
CocoaLumberjack - Swift : Deleting Old Logs all of sudden
We are using CocoaLumberjack(3.7.0) for implementing logging into application.
We want to keep max number of files to 90.
We are sure file size per day won't go beyond 100 MB.
So we referred below here
You may optionally disable rolling due to…

Banng
- 531
- 1
- 6
- 19
0
votes
1 answer
CocoaLumberjack - Swift : Not getting Previous Days Log Files
I am using CocoaLumberjack/Swift Pod in my iOS project.
The problem is, I am getting always Current day(Today or Last day of last time app launched) log files. CocoaLumberjack doesn't keeping old log files of Previous days.
For me Today is…

Anjan Majumder
- 61
- 2
- 5
0
votes
1 answer
Using Cocoalumberjack in Swift-project
I'm asking this question because all answers I've found online are either outdated or not working for me.
I'm working with a customers framework and for some reason they require me to use CocoaLumberjack in the project so any suggestions on other…

maniponken
- 265
- 3
- 15
0
votes
1 answer
Exporting CocoaLumberjack logs with UIActivityViewController
In one of my apps in the past I was able to allow users to export CocoaLumberjack logs from the device, using UIActivityViewController, passing in an array of file URLs pointing to the logs on the user's device.
However even though I (think I) have…

Kane Cheshire
- 1,654
- 17
- 20
0
votes
1 answer
How to get correct fileName function line when calling CocoaLumberjack from delegating function
I am using DDLogFormatter to format message and add there fileName, function and line to my logging but I don't call CocoaLumberjack directly , instead delegating so I can do some syntactic improvements. But now when I implemented it I realized I am…

Renetik
- 5,887
- 1
- 47
- 66
0
votes
1 answer
iOS Cocoalumberjack: ThreadId and ProcessId not printed in File Logger but prints in TTY Console logs
I have created TestProject in Swift and added Cocoalumberjack using CocoaPod. Initialized Cocoalumberjack logger to add logs to console and file. Please find the initializer code snippet below.
DDLog.add(DDTTYLogger.sharedInstance, with:…

Anand
- 1,820
- 2
- 18
- 25
0
votes
1 answer
iOS CocoaLumberjack: New log file is creating on every time app launch, if backgroundModes enabled and app running in simulator
I have configured library like below
let fileLogger: DDFileLogger = DDFileLogger()
fileLogger.rollingFrequency = -1
fileLogger.maximumFileSize = 1024 * 1024
fileLogger.logFileManager.maximumNumberOfLogFiles = 7
…

Logger
- 1,274
- 1
- 14
- 25