Questions tagged [cocoalumberjack]

Use this tag with questions about CocoaLumberjack, an open-source logging framework for iPhone and Mac.

124 questions
2
votes
0 answers

Cocoalumberjack DDLogInfo() doesn`t show File, Linenumber and function name

I'm using CocoaLumberjack in an iPhone project, to log some information. I've followed the Getting started guide, and everything works fine, but there is one thing that bugs me: I could not able to log the file name, line number, function name. Is…
2
votes
0 answers

Cocoalumberjack in a Framework + in project

I have started working on a project, that has been developed by some guys over last few years and this is how they set up CocoaLumberjack: There are the following 2 files: LogLevelInfo.h static const int ddLogLevel = DDLogLevelInfo; #define…
gasparuff
  • 2,295
  • 29
  • 48
2
votes
1 answer

CocoaLumberjack Undefined Symbols building for simulator

I am upgrading my code to use Swift 3 and CocoaLumberjack 3.0.0. When I build for the iPhone is compiles and links successfully. When I try building for the simulator it compiles but will not link. I get several messages of the form: Undefined…
Bill Waggoner
  • 452
  • 3
  • 11
2
votes
0 answers

CocoaLumberjack Retrieving System logs on top of regular logs in iOS 10

Prior to iOS 10, I could create an instance of an ASL Logger, and set it up to capture the system logs coming out of NSLog in other frameworks that our app was using, like so: DDASLLogCapture.setCaptureLevel(.All) DDASLLogCapture.start() However,…
pbush25
  • 5,228
  • 2
  • 26
  • 35
2
votes
1 answer

How can I get rid of the error message "Ambiguous use of internal linkage declaration '...' defined in multiple modules"

I have recently received hundreds of the following kind of error: Ambiguous use of internal linkage declaration 'DDLogFlagError' defined in multiple modules My podfile contains the following: use_frameworks! pod 'CocoaLumberjack/Swift' What can…
John
  • 8,468
  • 5
  • 36
  • 61
2
votes
1 answer

RestKit and CocoaLumberjack integrated as frameworks in Xcode7

I'm working on a project that uses both RestKit and CocoaLumberjack. The project also uses some other pods, some of them only exist in swift. I use cocoapods 0.38.2 for dependency management, my podfile looks like this (removed other pods for…
lawicko
  • 7,246
  • 3
  • 37
  • 49
2
votes
1 answer

CocoaLumberjack 1.9.x legacy macros enabled + DDLogWarn macros redefined

I have a project using Cocoalumberjack 2.x as Cocoapod. The project uses Obj-C mostly, but also a few Swift classes. I allways get these warnings: Disable legacy macros by importing CocoaLumberjack.h or DDLogMacros.h instead of DDLog.h or add…
brainray
  • 12,512
  • 11
  • 67
  • 116
2
votes
1 answer

How to send a Cocoa Lumberjack log file in email from within an OSX application

I have been trying to send a Cocoa Lumberjack log file through email from within my Mac OSX application, using apple script. Is it possible to do this? I have a problem with being able to use applescript to get the attachment out of the correct…
Justin
  • 33
  • 2
2
votes
2 answers

CocoaLumberJack XCTest Linker Error when running test cases

When using CocoaLumberJack with XCTest, I get an error that it cannot find the DDLog.h. I've tried changing it to with no luck. The project compiles and runs fine with LumberJack working in the iOS Simulator, but when I run…
DogEatDog
  • 2,899
  • 2
  • 36
  • 65
2
votes
1 answer

Is there any means to log the system logs in a separate file in iOS?

I am using CocoaLumberjack to log whatever things that I require for debugging. In addition to that I also require some additional console messages to be printed out, i.e. certain warnings that were raised in the system console etc. Is there any…
raghul
  • 1,008
  • 1
  • 15
  • 33
1
vote
0 answers

Why infer command is producing false positive error?

I am using CocoaLumberjack pod in my iOS project. Defined custom macro like, #define SM_DDLogDebugConst(tag, frmt) DDLogDebug(([NSString stringWithFormat:@"[DEBUG][%@] %@", tag, frmt]), @"%@") In code I used the macro like following, int64_t…
Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256
1
vote
1 answer

Cocoalumberjack send warn/error logs to sentry

I want to do logging into my existing project. I want to know that If I add cocoalumberjack for logging how do I send warning logs and error logs automatically to sentry or firebase or any third party framework ?
Rahul Vyas
  • 28,260
  • 49
  • 182
  • 256
1
vote
1 answer

DDOSLogger.sharedInstance logging only seems to log error level logging in console app

Using the typical DDLog.add(DDOSLogger.sharedInstance, with: .all) code to add the OSLog output to CocoaLumberjack logging in my iOS app. When I look at the console for the app running in the iOS simulator I see error level logging, but nothing more…
Splons
  • 13
  • 1
  • 4
1
vote
0 answers

How to capture all iOS console logs?

Is it possible to capture all the console logs and save them somewhere (in file or uitextview or something like that)? I am using CocoaLumberjack for logging but we have some 3rd party SDK that will help our team to debug things. We can only see…
StaticV0id
  • 411
  • 4
  • 13
1
vote
0 answers

iOS: CocoaLumberjack(version 3.5.1) is alway creating new file on app launch

I am using cocoa lumberjack to store my app logs. I want to roll the log file based on size only (if it reaches 1MB). Below code i am using for configuration. let fileLogger: DDFileLogger = DDFileLogger() fileLogger.rollingFrequency =…
Logger
  • 1,274
  • 1
  • 14
  • 25
1 2 3
8 9