This Question is Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
6 Replies Last post: Feb 24, 2013 11:24 PM by David Faivre  
Dude Inthemirror Newbie 5 posts since
Dec 22, 2011
Currently Being Moderated

Dec 22, 2011 6:46 AM

How can I make Lumberjack work in AppCode

Hi guys, first of all, thanks very much for a really cool product, I've been using it for ~2 months now, and I'm hooked.

 

This is the first time I've encountered an issue, and by searching the forum, it looks like other people had it, but I couldn't find the actual fix or workaround.

 

So basically, I am trying to integrate CocoaLumberjack (https://github.com/robbiehanson/CocoaLumberjack) logging framework into my apps, and it works fine in Xcode, but no messages are being displayed

on the console in AppCode.

 

Please advise. Thank you.

 

(please find screenshot attachments of the code and console output's for both AppCode and Xcode)

 

Also, is there an irc channel for AppCode and / or Jetbrains products in general ?

Attachments:
Crispin Bennett Novice 93 posts since
Sep 21, 2011
Currently Being Moderated
Dec 22, 2011 10:03 AM in response to: Dude Inthemirror
Re: How can I make Lumberjack work in AppCode

I suspect this is really too quick, dirty and dangerous to admit to in public, but I got it working by a (temporary!) modification in DDTTYLogger.h. Changing the test the line `isaTTY = isatty(STDERR_FILENO);` to always return YES does the trick for me.

 

It would be worth following this issue which is the root of the problem.

Tex-Twil Newbie 89 posts since
May 17, 2011
Currently Being Moderated
Jun 12, 2012 11:03 AM in response to: Crispin Bennett
Re: How can I make Lumberjack work in AppCode

crispinb wrote:

 

I suspect this is really too quick, dirty and dangerous to admit to in public, but I got it working by a (temporary!) modification in DDTTYLogger.h. Changing the test the line `isaTTY = isatty(STDERR_FILENO);` to always return YES does the trick for me.

 

It would be worth following this issue which is the root of the problem.

Hi,

Is there a better fix in AppCode for this ?

Anton Makeev JetBrains 1,289 posts since
Dec 19, 2006
Currently Being Moderated
Jun 12, 2012 11:05 AM in response to: Tex-Twil
Re: How can I make Lumberjack work in AppCode

At the moment, no. We plan to fix this in the next major update: http://youtrack.jetbrains.com/issue/OC-2367

Florent Pillet Newbie 2 posts since
Jan 27, 2012
Currently Being Moderated
Jan 27, 2012 1:31 PM in response to: Dude Inthemirror
Re: How can I make Lumberjack work in AppCode

Alternately, you can use my own NSLogger:

 

https://github.com/fpillet/NSLogger

 

and you won't even have to change your code, there is a Cocoa-Lumberjack adapter for it:

 

https://github.com/steipete/NSLogger-CocoaLumberjack-connector

 

The output goes to the desktop NSLogger application, and it provides a host of filtering options.

David Faivre Newbie 11 posts since
Sep 22, 2010
Currently Being Moderated
Feb 24, 2013 11:24 PM in response to: Dude Inthemirror
Re: How can I make Lumberjack work in AppCode

Or you can add a custom DDLogger that just forwards to NSLog: https://gist.github.com/dfaivre/5025120

More Like This

  • Retrieving data ...