Questions tagged [cocoalumberjack]

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

124 questions
65
votes
9 answers

Where is Logfile stored using cocoaLumberjack

I am Using cocoaLumberjack logging framework for iOS logging. For storing logs in a file I used this code. DDFileLogger* fileLogger = [[DDFileLogger alloc] init]; fileLogger.rollingFrequency = 60 * 60 * 24;…
abhiasawa
  • 1,330
  • 1
  • 10
  • 20
36
votes
12 answers

Global log level for CocoaLumberjack

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: there doesn't seem to be an elegant way to define a log level for the…
Marcos Crispino
  • 8,018
  • 5
  • 41
  • 59
18
votes
3 answers

Cocoa pod installation error: " The target overrides the SWIFT_VERSION build setting "

I'm trying to install Cocoalumberjack as a pod and am getting this error: The ProjectName [Release] target overrides the SWIFT_VERSION build setting defined in `Pods/Target Support Files/Pods-ProjectName/Pods-ProjectName.release.xcconfig'. This…
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
17
votes
1 answer

.pcm is out of date and needs to be rebuilt

Since updated my mac to OSX10.12, I have got this error: And I must clean, otherwise the build will fail. I have googled a lot, but did not found useful solution. I am wondering about the .pcm files. hope some person could help. Thanks.
melody5417
  • 355
  • 2
  • 13
15
votes
4 answers

What can be the cause of "use of undeclared identifier LOG_LEVEL_VERBOSE" message

I'm trying to configure cocoalumberjack and when I've added ddLogLevel set to LOG_LEVEL_VERBOSE XCode throws "use of undeclared identifier" error. Why is that? How to avoid?
Lukasz 'Severiaan' Grela
  • 6,078
  • 7
  • 43
  • 79
14
votes
3 answers

Immediately flushing log statements using the Cocoa Lumberjack logging framework, the way NSLog flushes to console

Many iOS developers have found the Cocoa Lumberjack Logging framework to fill a need that simple NSLog statements don't. It's reminiscent of Log4J in the Java world. In any event, I have written my own custom formatter for Lumberjack, but what I…
idStar
  • 10,674
  • 9
  • 54
  • 57
12
votes
0 answers

App freezes once resume from breakpoint on simulator Xcode9 - deadlock/bug?

Since moving to Xcode 9 I observe a strange behaviour while resuming from a breakpoint on Simulator. My app uses multiple threads significantly, and some breakpoints are set in the code on different threads. Once the app stops on a breakpoint and…
konradowy
  • 1,572
  • 17
  • 27
8
votes
3 answers

CocoaLumberjack with Swift - Calling preprocessor macros

I started to build an IOS app with the new programming language Swift. I managed to use CocoaPods and was able to successfully create the DDTTYLogger with my CustomLoggerFormatter (Objective-C) in my AppDelegate.swift and append it to the…
Prine
  • 12,192
  • 8
  • 40
  • 59
8
votes
2 answers

CocoaLumberjack FileLogger logging to multiple files

I am using this CocoaLumberjack framework to log all my messages in Objective-C design. Now I want to log all errors to one file and all other messages to another file. I know I could use formatter to filter this information. I created two…
juniorb
  • 81
  • 1
  • 4
7
votes
2 answers

CocoaLumberjack Error: Symbol not found: _objc_storeStrong

I'm relatively new to iOS development, and am trying to implement CocoaLumberjack logging. I downloaded the latest source from https://github.com/robbiehanson/CocoaLumberjack, have included the required files in my project, made the necessary code…
Alan
  • 3,715
  • 3
  • 39
  • 57
7
votes
4 answers

CocoaLumberjack in Swift, how to print line number and filne name

I'm new to CocoaLumberjack and I get it to work on Swift following this. If I try to print logs doing: DDLogDebug("Debug") DDLogInfo("Info") DDLogWarn("Warning") DDLogVerbose("Verbose") DDLogError("Error") Everything works fine and I get all the…
Andres
  • 11,439
  • 12
  • 48
  • 87
7
votes
2 answers

Lumberjack 2.0 logger with Swift

I used to use Lumberjack logger with Objective C and I like it. Now I start learning Swift and I cannot use my favourite logger there. Could somebody write step-by-step how I can do it please? I try to find something here but all topics are old with…
user3742622
  • 1,037
  • 3
  • 22
  • 40
7
votes
3 answers

Cocoa Lumberjack: how to show file and line number?

I am trying to find a way for Cocoa Lumberjack to show me file and line number. After looking through the docs and some Googling, I found no easy way to do this. Is there any way to do this without adding custom formatter?
UrK
  • 2,191
  • 2
  • 26
  • 42
6
votes
1 answer

How to send log statements over the network through CocoaLumberjack?

In the summary of CocoaLumberjack it is mentioned that "Lumberjack is Powerful", and then "Want more? Create your own loggers (it's easy) and send your log statements over the network." So, I wonder how can we send log statements over the network…
user3910365
  • 61
  • 1
  • 2
6
votes
3 answers

CocoaLumberjack Log App Crash

First of all I have been reading some threads about CocoaLumberjack and I have not been able to find solution to this question: I'm using CocoaLumberjack to Log in my app. But I want to Log the app crashes too. I have tried this: void…
Mikel Sanchez
  • 2,870
  • 1
  • 20
  • 28
1
2 3
8 9