Giter Club home page Giter Club logo

nslogger's People

Contributors

0xced avatar aaroncrespo avatar aeberbach avatar aharren avatar altimac avatar c0diq avatar diederich avatar djromero avatar fpillet avatar glyuck avatar heyvito avatar holtwick avatar jeremiegirault avatar krausefx avatar krugazor avatar liloew avatar lippling avatar monsieurdart avatar namnguyen-smg avatar paulcapestany avatar pbernery avatar pcuenca avatar philippec avatar rachelblackman avatar readmecritic avatar rsobik avatar rvi avatar tru avatar wmanth avatar yangyubo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nslogger's Issues

Keep current selected log entry when switching filters

When switching filters, try keeping the currently selected log entry if it is still available in the new filtered list, in order to allow using filters switching to see the "context" (other log entries around the selected one)

"Implicit conversion loses integer precision" warnings

hello

i just created a new Xcode 4.0.2 project using the default Cocoa Application template, added NSLogger, and built the application

i am receiving 3 compiler warnings indicating "Implicit conversion loses integer precision"

can you please advise what i should do?

and i am happy to provide more details, please let me know what you need

thanks!

NSLogger client correctly built but does not launch

Hi,

I just compiled the NSLogger client on Xcode 4/Lion but cannot make it work.

It builds correctly but when I launch it in Xcode, no interface or any Mac OS menu is shown although the app seems to be launched as Xcode is telling me NSLogger is running.

Here is the console log of Xcode :

[Switching to process 47522 thread 0x0]

It seems to me strange there is a thread 0x0.

I launched Console.app to get more information but nothing happens.

Any idea?

Warning: Semantic Issue

NSLogger/Client Logger/iOS/LoggerClient.m:1501:10:

Enumeration values 'kCFStreamEventNone' and 'kCFStreamEventHasBytesAvailable' not handled in switch

Xcode 4.5

Crash when receiving messages

Sorry, I don't have steps to reproduce it, but the crash log might be helpful...

Process:         NSLogger [13906]
Path:            /Developer/Applications/NSLogger 1.0b7/NSLogger.app/Contents/MacOS/NSLogger
Identifier:      com.florentpillet.NSLogger
Version:         ??? (1.0b7)
Code Type:       X86 (Native)
Parent Process:  launchd [193]

Date/Time:       2010-12-10 17:19:24.458 +0100
OS Version:      Mac OS X 10.6.5 (10H574)
Report Version:  6

Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Crashed Thread:  5  Dispatch queue: com.florentpillet.nslogger.messageFiltering

Thread 0:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib               0x988920fa mach_msg_trap + 10
1   libSystem.B.dylib               0x98892867 mach_msg + 68
2   com.apple.CoreGraphics          0x9906cb6a _CGSSynchronizeWindowBackingStore + 139
3   com.apple.CoreGraphics          0x99065ce0 _CGSLockWindow + 5001
4   com.apple.CoreGraphics          0x9906c70a CGSDeviceLock + 493
5   libRIP.A.dylib                  0x9800b593 ripd_Lock + 62
6   libRIP.A.dylib                  0x9800ae90 ripl_BltShape + 599
7   libRIP.A.dylib                  0x98008247 ripc_Render + 377
8   libRIP.A.dylib                  0x98005454 ripc_DrawRects + 622
9   com.apple.CoreGraphics          0x9906bfc0 CGContextFillRects + 159
10  com.apple.CoreGraphics          0x990aeb5c CGContextFillRect + 32
11  com.apple.AppKit                0x942140c0 NSRectFillUsingOperation + 280
12  com.apple.AppKit                0x94215357 -[NSTableView drawBackgroundInClipRect:] + 415
13  com.apple.AppKit                0x94214c98 -[NSTableView drawRect:] + 981
14  com.apple.AppKit                0x9420a82a -[NSView _drawRect:clip:] + 3510
15  com.apple.AppKit                0x942094c8 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1600
16  com.apple.AppKit                0x942097fd -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421
17  com.apple.AppKit                0x942079e7 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 711
18  com.apple.AppKit                0x9420895c -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668
19  com.apple.AppKit                0x9420895c -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668
20  com.apple.AppKit                0x9420895c -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668
21  com.apple.AppKit                0x9420895c -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668
22  com.apple.AppKit                0x9420895c -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4668
23  com.apple.AppKit                0x9420755b -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 265
24  com.apple.AppKit                0x94203ea2 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 3309
25  com.apple.AppKit                0x94164a57 -[NSView displayIfNeeded] + 818
26  com.apple.AppKit                0x9412dd40 -[NSWindow displayIfNeeded] + 204
27  com.apple.AppKit                0x9415f28a _handleWindowNeedsDisplay + 696
28  com.apple.Foundation            0x900dd9b0 __NSFireTimer + 141
29  com.apple.CoreFoundation        0x93118adb __CFRunLoopRun + 8059
30  com.apple.CoreFoundation        0x93116464 CFRunLoopRunSpecific + 452
31  com.apple.CoreFoundation        0x93116291 CFRunLoopRunInMode + 97
32  com.apple.HIToolbox             0x9062af9c RunCurrentEventLoopInMode + 392
33  com.apple.HIToolbox             0x9062ad51 ReceiveNextEventCommon + 354
34  com.apple.HIToolbox             0x9062abd6 BlockUntilNextEventMatchingListInMode + 81
35  com.apple.AppKit                0x9413578d _DPSNextEvent + 847
36  com.apple.AppKit                0x94134fce -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
37  com.apple.AppKit                0x940f7247 -[NSApplication run] + 821
38  com.apple.AppKit                0x940ef2d9 NSApplicationMain + 574
39  com.florentpillet.NSLogger      0x00002824 main + 52
40  com.florentpillet.NSLogger      0x000027e5 start + 53

Thread 1:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib               0x988b8982 kevent + 10
1   libSystem.B.dylib               0x988b909c _dispatch_mgr_invoke + 215
2   libSystem.B.dylib               0x988b8559 _dispatch_queue_invoke + 163
3   libSystem.B.dylib               0x988b82fe _dispatch_worker_thread2 + 240
4   libSystem.B.dylib               0x988b7d81 _pthread_wqthread + 390
5   libSystem.B.dylib               0x988b7bc6 start_wqthread + 30

Thread 2:
0   libSystem.B.dylib               0x988920fa mach_msg_trap + 10
1   libSystem.B.dylib               0x98892867 mach_msg + 68
2   com.apple.CoreFoundation        0x9311737f __CFRunLoopRun + 2079
3   com.apple.CoreFoundation        0x93116464 CFRunLoopRunSpecific + 452
4   com.apple.CoreFoundation        0x93116291 CFRunLoopRunInMode + 97
5   com.apple.Foundation            0x900e971c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 279
6   com.florentpillet.NSLogger      0x000163df -[LoggerNativeTransport listenerThread] + 575
7   com.apple.Foundation            0x900afbf0 -[NSThread main] + 45
8   com.apple.Foundation            0x900afba0 __NSThread__main__ + 1499
9   libSystem.B.dylib               0x988bf85d _pthread_start + 345
10  libSystem.B.dylib               0x988bf6e2 thread_start + 34

Thread 3:
0   libSystem.B.dylib               0x988920fa mach_msg_trap + 10
1   libSystem.B.dylib               0x98892867 mach_msg + 68
2   com.apple.CoreFoundation        0x9311737f __CFRunLoopRun + 2079
3   com.apple.CoreFoundation        0x93116464 CFRunLoopRunSpecific + 452
4   com.apple.CoreFoundation        0x93116291 CFRunLoopRunInMode + 97
5   com.apple.Foundation            0x900e971c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 279
6   com.florentpillet.NSLogger      0x000163df -[LoggerNativeTransport listenerThread] + 575
7   com.apple.Foundation            0x900afbf0 -[NSThread main] + 45
8   com.apple.Foundation            0x900afba0 __NSThread__main__ + 1499
9   libSystem.B.dylib               0x988bf85d _pthread_start + 345
10  libSystem.B.dylib               0x988bf6e2 thread_start + 34

Thread 4:  com.apple.CFSocket.private
0   libSystem.B.dylib               0x988b10c6 select$DARWIN_EXTSN + 10
1   com.apple.CoreFoundation        0x93156c83 __CFSocketManager + 1091
2   libSystem.B.dylib               0x988bf85d _pthread_start + 345
3   libSystem.B.dylib               0x988bf6e2 thread_start + 34

Thread 5 Crashed:  Dispatch queue: com.florentpillet.nslogger.messageFiltering
0   libobjc.A.dylib                 0x96c634b4 _objc_error + 116
1   libobjc.A.dylib                 0x96c634ea __objc_error + 52
2   libobjc.A.dylib                 0x96c617dc _freedHandler + 58
3   com.apple.Foundation            0x900f29e1 -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 199
4   com.apple.Foundation            0x900f8eb1 -[NSCompoundPredicateOperator evaluatePredicates:withObject:substitutionVariables:] + 217
5   com.apple.Foundation            0x900f8dae -[NSCompoundPredicate evaluateWithObject:substitutionVariables:] + 245
6   com.apple.Foundation            0x900f2914 -[NSPredicate evaluateWithObject:] + 49
7   com.apple.Foundation            0x900f2877 _filterObjectsUsingPredicate + 359
8   com.apple.Foundation            0x900f26ac -[NSArray(NSPredicateSupport) filteredArrayUsingPredicate:] + 337
9   com.florentpillet.NSLogger      0x0000c7cb -[LoggerWindowController filterIncomingMessages:withFilter:] + 107
10  com.florentpillet.NSLogger      0x0000c672 __49-[LoggerWindowController filterIncomingMessages:]_block_invoke_0 + 66
11  libSystem.B.dylib               0x988c6024 _dispatch_call_block_and_release + 16
12  libSystem.B.dylib               0x988b8a8c _dispatch_queue_drain + 249
13  libSystem.B.dylib               0x988b84e8 _dispatch_queue_invoke + 50
14  libSystem.B.dylib               0x988b82fe _dispatch_worker_thread2 + 240
15  libSystem.B.dylib               0x988b7d81 _pthread_wqthread + 390
16  libSystem.B.dylib               0x988b7bc6 start_wqthread + 30

Thread 5 crashed with X86 Thread State (32-bit):
  eax: 0x010c5000  ebx: 0x96c63454  ecx: 0x010c5000  edx: 0x010c6300
  edi: 0x0048a910  esi: 0x06000000  ebp: 0xb0102a88  esp: 0xb0102a40
   ss: 0x0000001f  efl: 0x00010286  eip: 0x96c634b4   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x0000001f   gs: 0x00000037
  cr2: 0xffe2a04c

Binary Images:
    0x1000 -    0x2effb +com.florentpillet.NSLogger ??? (1.0b7)  /Developer/Applications/NSLogger 1.0b7/NSLogger.app/Contents/MacOS/NSLogger
   0x49000 -    0x7eff7 +com.brandonwalkin.BWToolkitFramework ??? (1.2.5)  /Developer/Applications/NSLogger 1.0b7/NSLogger.app/Contents/Frameworks/BWToolkitFramework.framework/Versions/A/BWToolkitFramework
   0xf8000 -    0xf8ff7 +net.sourceforge.SafariAdBlockLoader 0.4.0 RC3 (0.4.0 RC3) <8E9A6641-9CE7-5416-DC84-883DB8BAFDDA> /Library/InputManagers/Safari AdBlock/Safari AdBlock Loader.bundle/Contents/MacOS/Safari AdBlock Loader
  0x540000 -   0x545ffc +com.macromates.edit_in_textmate ??? (1.0) <374FF41B-DB1D-E013-59B1-1BCB931ABCD1> /Library/InputManagers/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS/Edit in TextMate
0x8fe00000 - 0x8fe4162b  dyld 132.1 (???)  /usr/lib/dyld
0x90099000 - 0x9030cfe7  com.apple.Foundation 6.6.4 (751.42)  /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x9030d000 - 0x9031bff7  com.apple.opengl 1.6.11 (1.6.11) <286D1BC4-4CD8-3CD4-F723-5C196FE15FE0> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x90524000 - 0x9056dfe7  libTIFF.dylib ??? (???)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x9056e000 - 0x905e8fff  com.apple.audio.CoreAudio 3.2.6 (3.2.6)  /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x905f5000 - 0x905f5ff7  com.apple.Accelerate 1.6 (Accelerate 1.6)  /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x905f6000 - 0x9091afef  com.apple.HIToolbox 1.6.3 (???) <0A5F56E2-9AF3-728D-70AE-429522AEAD8A> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x9091b000 - 0x9091bff7  com.apple.CoreServices 44 (44) <51CFA89A-33DB-90ED-26A8-67D461718A4A> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x9186f000 - 0x9186fff7  com.apple.ApplicationServices 38 (38) <8012B504-3D83-BFBB-DA65-065E061CFE03> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x918aa000 - 0x918befe7  libbsm.0.dylib ??? (???) <14CB053A-7C47-96DA-E415-0906BA1B78C9> /usr/lib/libbsm.0.dylib
0x91aa4000 - 0x91ad5ff7  libGLImage.dylib ??? (???) <78F59EAB-BBD4-7366-CA84-970547501978> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x91b2d000 - 0x91be3ff7  libFontParser.dylib ??? (???) <33F62EE1-E457-C6FD-369E-E86745B94A4B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x91be4000 - 0x91c06fef  com.apple.DirectoryService.Framework 3.6 (621.9)  /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
0x91c07000 - 0x91c49ff7  libvDSP.dylib 268.0.1 (compatibility 1.0.0) <3F0ED200-741B-4E27-B89F-634B131F5E9E> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x91c4a000 - 0x91d4bfe7  libxml2.2.dylib 10.3.0 (compatibility 10.0.0)  /usr/lib/libxml2.2.dylib
0x92229000 - 0x9248cfef  com.apple.security 6.1.1 (37594) <1949216A-7583-B73A-6112-4D55CA5852E3> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x9248d000 - 0x9248dff7  com.apple.Cocoa 6.6 (???)  /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x9248e000 - 0x92497ff7  com.apple.DiskArbitration 2.3 (2.3)  /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x92498000 - 0x92507ff7  libvMisc.dylib 268.0.1 (compatibility 1.0.0) <2FC2178F-FEF9-6E3F-3289-A6307B1A154C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x92508000 - 0x9250bfe7  libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <1622A54F-1A98-2CBE-B6A4-2122981A500E> /usr/lib/system/libmathCommon.A.dylib
0x9250c000 - 0x9263afe7  com.apple.CoreData 102.1 (251)  /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x9263b000 - 0x92657fe3  com.apple.openscripting 1.3.1 (???)  /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x92658000 - 0x92665ff7  com.apple.NetFS 3.2.1 (3.2.1) <5E61A00B-FA16-9D99-A064-47BDC5BC9A2B> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x92960000 - 0x92978ff7  com.apple.CFOpenDirectory 10.6 (10.6)  /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x92a28000 - 0x92b34ff7  libGLProgrammability.dylib ??? (???) <8B308FAE-843F-EE76-0254-3374CBFFA7B3> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x92b35000 - 0x92b39ff7  libGFXShared.dylib ??? (???)  /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x92b3a000 - 0x92b5bfe7  com.apple.opencl 12.3 (12.3)  /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x92b5c000 - 0x92b99ff7  com.apple.SystemConfiguration 1.10.5 (1.10.2) <362DF639-6E5F-9371-9B99-81C581A8EE41> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x92c96000 - 0x92cbaff7  libJPEG.dylib ??? (???) <46AF3A0F-2B8D-87B9-62D4-0905678A64DA> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x92cbb000 - 0x92cdaff7  com.apple.CoreVideo 1.6.2 (45.6)  /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x92cdb000 - 0x92ce2ff3  com.apple.print.framework.Print 6.1 (237.1)  /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x92e24000 - 0x92e35ff7  com.apple.LangAnalysis 1.6.6 (1.6.6) <97511CC7-FE23-5AC3-2EE2-B5479FAEB316> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x92e36000 - 0x92e40ffb  com.apple.speech.recognition.framework 3.11.1 (3.11.1)  /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x92e41000 - 0x92e85fe7  com.apple.Metadata 10.6.3 (507.12) <8632684D-ED4C-4CE1-4C53-015DFF10D873> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x92e86000 - 0x92f63ff7  com.apple.vImage 4.0 (4.0) <64597E4B-F144-DBB3-F428-0EC3D9A1219E> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x930da000 - 0x93255fe7  com.apple.CoreFoundation 6.6.4 (550.42)  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x93288000 - 0x9329dfff  com.apple.ImageCapture 6.0.1 (6.0.1)  /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x932ff000 - 0x93329ff7  com.apple.shortcut 1.1 (1.1)  /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut
0x9332a000 - 0x9332bff7  com.apple.TrustEvaluationAgent 1.1 (1) <6C04C4C5-667E-2EBE-EB96-5B67BD4B2185> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x9341f000 - 0x9342aff7  libGL.dylib ??? (???) <48405993-0AE9-292B-6705-C3525528682A> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x934ad000 - 0x934feff7  com.apple.HIServices 1.8.1 (???) <51BDD848-32A5-2425-BE07-BD037A89630A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x934ff000 - 0x93545ff7  libauto.dylib ??? (???) <29422A70-87CF-10E2-CE59-FEE1234CFAAE> /usr/lib/libauto.dylib
0x93546000 - 0x9357cfff  libtidy.A.dylib ??? (???) <0FD72C68-4803-4C5B-3A63-05D7394BFD71> /usr/lib/libtidy.A.dylib
0x9357d000 - 0x939b2ff7  libLAPACK.dylib 219.0.0 (compatibility 1.0.0) <5E2D2283-57DE-9A49-1DB0-CD027FEFA6C2> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x939b3000 - 0x93ae2fe3  com.apple.audio.toolbox.AudioToolbox 1.6.5 (1.6.5) <0A0F68E5-4806-DB51-764B-D97554B801AD> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x93d2a000 - 0x93d2aff7  com.apple.vecLib 3.6 (vecLib 3.6) <7362077A-890F-3AEF-A8AB-22247B10E106> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x93e08000 - 0x93e28fe7  libresolv.9.dylib 41.0.0 (compatibility 1.0.0) <751955F3-21FB-A03A-4E92-1F3D4EFB8C5B> /usr/lib/libresolv.9.dylib
0x93e29000 - 0x93e2dff7  libGIF.dylib ??? (???)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x93e6d000 - 0x93f1bff3  com.apple.ink.framework 1.3.3 (107) <57B54F6F-CE35-D546-C7EC-DBC5FDC79938> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x9407f000 - 0x9408fff7  libsasl2.2.dylib 3.15.0 (compatibility 3.0.0)  /usr/lib/libsasl2.2.dylib
0x9409a000 - 0x9409bff7  com.apple.audio.units.AudioUnit 1.6.5 (1.6.5)  /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x9409c000 - 0x940ecff7  com.apple.framework.familycontrols 2.0.1 (2010)  /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls
0x940ed000 - 0x949cdff7  com.apple.AppKit 6.6.7 (1038.35)  /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x94a0e000 - 0x94a1cfe7  libz.1.dylib 1.2.3 (compatibility 1.0.0) <3CE8AA79-F077-F1B0-A039-9103A4A02E92> /usr/lib/libz.1.dylib
0x94a1d000 - 0x94a58feb  libFontRegistry.dylib ??? (???) <4FB144ED-8AF9-27CF-B315-DCE5575D5231> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x94c0c000 - 0x94ff2ffb  com.apple.RawCamera.bundle 3.4.1 (546) <557C094F-BF8D-B298-E502-C4EE78914C55> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
0x95001000 - 0x9536cff7  com.apple.QuartzCore 1.6.3 (227.34)  /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x953ca000 - 0x953cdff7  libCoreVMClient.dylib ??? (???) <1F738E81-BB71-32C5-F1E9-C1302F71021C> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x953ce000 - 0x95487fe7  libsqlite3.dylib 9.6.0 (compatibility 9.0.0) <52438E77-55D1-C231-1936-76F1369518E4> /usr/lib/libsqlite3.dylib
0x95488000 - 0x954cbff7  com.apple.NavigationServices 3.5.4 (182) <753B8906-06C0-3AE0-3D6A-8FF5AC18ED12> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x95545000 - 0x955a9ffb  com.apple.htmlrendering 72 (1.1.4) <4D451A35-FAB6-1288-71F6-F24A4B6E2371> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x955aa000 - 0x955afff7  com.apple.OpenDirectory 10.6 (10.6)  /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x955b0000 - 0x955b6ff7  libCGXCoreImage.A.dylib 545.0.0 (compatibility 64.0.0)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXCoreImage.A.dylib
0x955b7000 - 0x955b9ff7  libRadiance.dylib ??? (???) <10048B4A-2AE8-A4E2-21B8-C6E7A8C5B76F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x955ba000 - 0x955c4fe7  com.apple.audio.SoundManager 3.9.3 (3.9.3) <5F494955-7290-2D91-DA94-44B590191771> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x956fd000 - 0x9575efe7  com.apple.CoreText 3.5.0 (???)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x9575f000 - 0x95785ffb  com.apple.DictionaryServices 1.1.2 (1.1.2) <43E1D565-6E01-3681-F2E5-72AE4C3A097A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x95986000 - 0x95986ff7  liblangid.dylib ??? (???)  /usr/lib/liblangid.dylib
0x95bdb000 - 0x95c85fe7  com.apple.CFNetwork 454.11.5 (454.11.5)  /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x95ce0000 - 0x95d24ff3  com.apple.coreui 2 (114) <29F8F1A4-1C96-6A0F-4CC2-9B85CF83209F> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x95d70000 - 0x96186ff7  libBLAS.dylib 219.0.0 (compatibility 1.0.0)  /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x961f6000 - 0x96239ff7  libGLU.dylib ??? (???)  /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x96261000 - 0x96311ff3  com.apple.ColorSync 4.6.3 (4.6.3)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x96312000 - 0x9631cff7  com.apple.HelpData 2.0.4 (34) <9128FFEB-0F6C-B273-FCF4-D87A20227345> /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/HelpData
0x9631d000 - 0x964d6feb  com.apple.ImageIO.framework 3.0.4 (3.0.4)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x964d7000 - 0x964d7ff7  com.apple.Carbon 150 (152) <9252D5F2-462D-2C15-80F3-109644D6F704> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x9650b000 - 0x9650dff7  com.apple.securityhi 4.0 (36638) <38D36D4D-C798-6ACE-5FA8-5C001993AD6B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x96969000 - 0x96a04ff7  com.apple.ApplicationServices.ATS 4.4 (???)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x96a05000 - 0x96a38ff7  com.apple.AE 496.4 (496.4) <7F34EC47-8429-3077-8158-54F5EA908C66> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x96a39000 - 0x96ad1fe7  edu.mit.Kerberos 6.5.10 (6.5.10) <8B83AFF3-C074-E47C-4BD0-4546EED0D1BC> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x96ad2000 - 0x96ae6ffb  com.apple.speech.synthesis.framework 3.10.35 (3.10.35) <57DD5458-4F24-DA7D-0927-C3321A65D743> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x96ae7000 - 0x96b34feb  com.apple.DirectoryService.PasswordServerFramework 6.0 (6.0)  /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordServer
0x96b35000 - 0x96b5dff7  libxslt.1.dylib 3.24.0 (compatibility 3.0.0) <769EF4B2-C1AD-73D5-AAAD-1564DAEA77AF> /usr/lib/libxslt.1.dylib
0x96c4f000 - 0x96c53ff7  IOSurface ??? (???)  /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x96c54000 - 0x96d01fe7  libobjc.A.dylib 227.0.0 (compatibility 1.0.0)  /usr/lib/libobjc.A.dylib
0x96d02000 - 0x96dddfeb  com.apple.DesktopServices 1.5.9 (1.5.9)  /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x97080000 - 0x97202fe7  libicucore.A.dylib 40.0.0 (compatibility 1.0.0) <35DB7644-0780-D2AB-F6A9-45F28D2D434A> /usr/lib/libicucore.A.dylib
0x97203000 - 0x97523ff3  com.apple.CoreServices.CarbonCore 861.23 (861.23)  /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x97ff6000 - 0x98002ff7  libkxld.dylib ??? (???)  /usr/lib/system/libkxld.dylib
0x98003000 - 0x98044ff7  libRIP.A.dylib 545.0.0 (compatibility 64.0.0) <16DAE1A5-937A-1CA2-D98F-2AF958B62993> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x9818e000 - 0x98199ff7  libCSync.A.dylib 545.0.0 (compatibility 64.0.0)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x9819a000 - 0x9819dff7  libCGXType.A.dylib 545.0.0 (compatibility 64.0.0)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
0x9819e000 - 0x981a4fff  com.apple.CommonPanels 1.2.4 (91) <2438AF5D-067B-B9FD-1248-2C9987F360BA> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x983d1000 - 0x98463fe7  com.apple.print.framework.PrintCore 6.3 (312.7) <7410D1B2-655D-68DA-D4B9-2C65747B6817> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x98464000 - 0x9850cffb  com.apple.QD 3.36 (???)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x9850d000 - 0x9851fff7  com.apple.MultitouchSupport.framework 207.10 (207.10)  /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x98601000 - 0x98683ffb  SecurityFoundation ??? (???) <3670AE8B-06DA-C447-EB14-79423DB9C474> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x9869a000 - 0x98737fe3  com.apple.LaunchServices 362.1 (362.1) <885D8567-9E40-0105-20BC-42C7FF657583> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x98891000 - 0x98a38ff7  libSystem.B.dylib 125.2.1 (compatibility 1.0.0) <62291026-D016-705D-DC1E-FC2B09D47DE5> /usr/lib/libSystem.B.dylib
0x98a39000 - 0x98ab9feb  com.apple.SearchKit 1.3.0 (1.3.0) <9E18AEA5-F4B4-8BE5-EEA9-818FC4F46FD9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x98aba000 - 0x98aecfe3  libTrueTypeScaler.dylib ??? (???) <6E9D1A50-330E-F1F4-F93D-9ECC8A61B21A> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib
0x98bef000 - 0x98bf2ffb  com.apple.help 1.3.1 (41) <67F1F424-3983-7A2A-EC21-867BE838E90B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x98bf3000 - 0x98c2cff7  libcups.2.dylib 2.8.0 (compatibility 2.0.0)  /usr/lib/libcups.2.dylib
0x98ca7000 - 0x98d11fe7  libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <411D87F4-B7E1-44EB-F201-F8B4F9227213> /usr/lib/libstdc++.6.dylib
0x98f1e000 - 0x99022fe7  libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8)  /usr/lib/libcrypto.0.9.8.dylib
0x99045000 - 0x99834557  com.apple.CoreGraphics 1.545.0 (???) <1AB39678-00D5-FB88-3B41-93D78348E0DE> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x9983c000 - 0x99899ff7  com.apple.framework.IOKit 2.0 (???)  /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x9990b000 - 0x99926ff7  libPng.dylib ??? (???)  /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x99927000 - 0x999f1fef  com.apple.CoreServices.OSServices 357 (357)  /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x999f2000 - 0x999f2ff7  com.apple.Accelerate.vecLib 3.6 (vecLib 3.6) <1DEC639C-173D-F808-DE0D-4070CC6F5BC7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0xbb100000 - 0xbb103fe7  libLatinSuppConverter.dylib 49.0.0 (compatibility 1.0.0) <80CA35C5-AFBF-DD2D-B47B-9CE773B9CAEF> /System/Library/CoreServices/Encodings/libLatinSuppConverter.dylib
0xffff0000 - 0xffff1fff  libSystem.B.dylib ??? (???) <62291026-D016-705D-DC1E-FC2B09D47DE5> /usr/lib/libSystem.B.dylib

EXC_BAD_ACCESS crash on iOS 5 (9A5220p) in CFStringGetLength(thread)

I get a EXC_BAD_ACCESS crash on an iPhone4 with iOS 5 (9A5220p) in CFStringGetLength(thread).
Compiled with Xcode 4.0.2, Build 4A2002a (=pre-IOS5).

stacktrace:

#0  0x3137befc in CFStringGetLength ()
#1  0x00034bd6 in LoggerLogToConsole at ../NSLogger/Client Logger/LoggerClient.m:722
#2  0x00035188 in LoggerWriteMoreData ()
#3  0x313fa0f4 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#4  0x313fb826 in __CFRunLoopDoSources0 ()
#5  0x313fc7b2 in __CFRunLoopRun ()
#6  0x3139ac42 in CFRunLoopRunSpecific ()
#7  0x3139ab04 in CFRunLoopRunInMode ()
#8  0x00034312 in LoggerWorkerThread ()
#9  0x367cc588 in _pthread_start ()

source:

LoggerClient.m: lines 717-731,

if (contentsType == PART_TYPE_IMAGE)
    message = CFStringCreateWithFormat(NULL, NULL, CFSTR("<image width=%d height=%d>"), imgWidth, imgHeight);

char threadNamePadding[16];
threadNamePadding[0] = 0;
if (CFStringGetLength(thread) < 16)
{
    int n = 16 - CFStringGetLength(thread);
    memset(threadNamePadding, ' ', n);
    threadNamePadding[n] = 0;
}
CFStringAppendFormat(s, NULL, CFSTR(".%04d %s%@ | %@"),
                     (int)(timestamp.tv_usec / 1000),
                     threadNamePadding, thread,
                     message ? message : CFSTR(""));

EXC_BAD_ACCESS in the line "if (CFStringGetLength(thread) < 16)"

Prevent logging to viewer

hi

thanks for this excellent library and viewer

one question, how can you prevent logging to the viewer and always save logs to a file even if a viewer is open

thx!

Can NSLogger be used in tests?

I'm trying to use NSLogger in my tests target with not much success. I can call LogMessageCompat fine in application code, but if I try to call it in test code like so, nothing appears on my NSLogger console. I tried using both bonjour as well as TCP/IP based approach. Can NSlogger be used in tests?

#import "Tests.h"
#import <NSLogger/LoggerClient.h>

@implementation Tests

- (void)setUp {

    [super setUp];

    // Set-up code here.
}

- (void)tearDown {
    // Tear-down code here.

    [super tearDown];
}

- (void)testExample {
        LoggerSetViewerHost(NULL, CFSTR("localhost"), 50000);
    LogMessageCompat(@"Need to implement unit tests here!");
    Logger *l = LoggerGetDefaultLogger();
    NSLog(@"default  %@", l->host);
        NSLog(@"default  %d", l->port);
}

@end

Jump into XCode to log emitting line

May I remember the 'jump to code' feature ;) It was part of this ticket. https://github.com/fpillet/NSLogger/issues/closed#issue/10

I think it should be a straight forward implementation using some Apple Script magic. Maybe someone who knows Apple Script better than me could prepare the code to be used in NSLogger?

Would be great if I could have double click on a log entry to jump to the code. Maybe worth a settings option to let the user choose if he prefers jump to code or logging details?

Clears Log on Restart of Logging Client

When I start my App and collect some Log entries and then start the App again (without closing the NSLogger Document) it silently drops all previous messages from that client.

I would expect that it saves/remembers "multiple runs" of the app.

Crash on Archive ipa

I added NSLogger to an existent app, it works smoothly in develop mode, running from XCode or running the installed from Xcode app.
But, when I archive and create an ipa, the app crashes at the first LogMessage calls with EXC_BAD_INSTRUCTION (SIGILL).
I'm sure is some stupid settings, but I'm clueless :-(
Any suggestions?
Thanx

Incident Identifier: 69B030B5-84BA-4284-99BA-15FCEB42406D
CrashReporter Key: 80e0be7a1c8c1052dcd8c41c2574666a49744be4
Hardware Model: iPhone4,1
Process: BodyScalePlugg [22272]
Path: /var/mobile/Applications/CE47E0E8-4939-488E-9DC3-A3B83A7DE394/BodyScalePlugg.app/BodyScalePlugg
Identifier: BodyScalePlugg
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2012-07-24 19:00:05.693 +0200
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x00000001, 0xf640b08a
Crashed Thread: 7

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x362351d0 bsdthread_create + 20
1 libsystem_c.dylib 0x32d43490 pthread_create + 736
2 BodyScalePlugg 0x000a05b0 0x56000 + 304560
3 BodyScalePlugg 0x000a0856 0x56000 + 305238
4 BodyScalePlugg 0x000a096e 0x56000 + 305518
5 BodyScalePlugg 0x00058078 -Application application:didFinishLaunchingWithOptions:
6 UIKit 0x333ecca4 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1176
7 UIKit 0x333e67d6 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 402
8 UIKit 0x333b4abc -[UIApplication handleEvent:withNewEvent:] + 1004
9 UIKit 0x333b4560 -[UIApplication sendEvent:] + 48
10 UIKit 0x333b3f34 _UIApplicationHandleEvent + 5820
11 GraphicsServices 0x37573224 PurpleEventCallback + 876
12 CoreFoundation 0x3595451c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION
+ 32
13 CoreFoundation 0x359544be __CFRunLoopDoSource1 + 134
14 CoreFoundation 0x3595330c __CFRunLoopRun + 1364
15 CoreFoundation 0x358d649e CFRunLoopRunSpecific + 294
16 CoreFoundation 0x358d6366 CFRunLoopRunInMode + 98
17 UIKit 0x333e5864 -[UIApplication _run] + 544
18 UIKit 0x333e2cce UIApplicationMain + 1074
19 BodyScalePlugg 0x00057948 main (main.m:13)
20 BodyScalePlugg 0x000578f8 0x56000 + 6392

not seeing file, line, function in logs

I suspect this is user error, but I am not seeing file,line and function names in my logs with NSLogger.
My macro looks like this:

define BBLog(fmt, ...) LogMessageF(FILE, LINE, PRETTY_FUNCTION, @"bbapp", 0, fmt, ##VA_ARGS)

An example of an output log is this:
[145 ] 15:46:11.739 | bbapp | Main thread | doing stuff

Any ideas?

"Building the NSLogger viewer" wiki page?

This page appears to be missing. Did it exist before?

I can't seem to build NSLogger in Xcode using the master branch code. I am getting errors about not having certificates in my key chain. What am I doing wrong?

Mac client layout using tabs

I am often restarting my apps and this will always result in a new window popping up and I have to close the old one by also deciding not to save the content (which is my default). Sometimes I have the app running on simulator and the device and want to compare the logs.

So because of this scenario I have the following suggestions:

  • The Mac client should be a single window app, where each log will appear in a new tab
  • Setting to deactivate the dialog asking to save the content if it is not done
  • Option to have the same client appear in the same tab after it starts again instead of opening a new window/tab if the old one is still available
  • Split view (like in Kaleidoscope) of 2 or maybe even more logs. All share the same left sidebar and bottom toolbar
  • In split view align the log entries of all visible logs by a global time stamp column, so it is clear what happens where and when

Great job so far!!!
Andreas

How to avoid NSLogger code in release version

This relates to Xcode 4.3

Apart from NOT including LoggerClient.m in My Target, Build Phases, Compile Sources - how can I avoid getting the code included in my release code? Also, since LoggerClient.m calls CFNetwork.framework, that gets included as well.

I have no calls, of course, to NSLogger in my release code (controlled through macros and #ifdef's) but LoggerClient.m gets pulled into the compilation anyway, being part of Compile Sources.

If LoggerClient.m had been a library, I could use Build Settings, EXCLUDED_SOURCE_FILE_NAME to avoid it conditionally, based on the configuration type, but..

Thank you for any suggestions.

enhancement: iPad client as alternative to OS X client

Running the NSLogger client on an iPad would be a great aid to developers working on small screens. It would be better in some ways that the various apps enabling the use of iPad as a secondary Mac OS X screen because it would not suffer from any wireless lag issues or the fact that my favourite screen extender app no longer works under OS X Lion.

Crash in __CFStringAppendFormatCore

I'm using the DDNSLoggerLogger-Bridge.

Logging works, until i send an error log (this somehow calls the log differently) but I can't figure out why it's crashing there.

It scrasing in LoggerClientm:1605, at

// Go though NSString to avoid low-level logging of CF datastructures (i.e. too detailed NSDictionary, etc)
CFStringRef msgString = (CFStringRef)[[NSString alloc] initWithFormat:format arguments:args];

but the parameter seem valid... except args, which should be nil, but isn't?

kinda stuck here.

The internal call is LogMessage([logMessage fileName], nsloggerLogLevel, logMsg);

weird error with bonjour connections

I have the following scenario with an app running on an iPhone.

I'm using the following setup:

LoggerSetOptions(NULL, kLoggerOption_BufferLogsUntilConnection | kLoggerOption_BrowseBonjour);
NSString *logBufferPath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"bb.rawnsloggerdata"];
LoggerSetBufferFile(NULL, (__bridge CFStringRef)logBufferPath);

Everything works fine if I start up the app with my iphone on wifi. It doesn't work properly if I disconnect from wifi and then reconnect OR if I start the app disconnected from wifi and then reconnect.

If I enable debugging in the NSLogger code, I see errors in the LoggerServiceBrowserCallback.

Logger configured to search all domains, browsing for domains first
LoggerStartBonjourBrowsing
Logger configured to search all domains, browsing for domains first
LoggerServiceBrowserCallback browser=<CFNetServiceBrowser 0x101ca390 [0x3f9de650]> flags=0x0002 domainOrService=local. error=0
Logger started search for services of type _nslogger._tcp in domain local.
LoggerServiceBrowserCallback browser=<CFNetServiceBrowser 0x488b30 [0x3f9de650]> flags=0x0002 domainOrService=local. error=0
Logger started search for services of type _nslogger._tcp in domain local.
// Everything working fine here

// Now I disconnect and reconnect to wifi
LoggerServiceBrowserCallback browser=<CFNetServiceBrowser 0x101b5fe0 [0x3f9de650]> flags=0x0000 domainOrService=(null) error=-72000
Logger found service: (null)
LoggerServiceBrowserCallback browser=<CFNetServiceBrowser 0x101ea8f0 [0x3f9de650]> flags=0x0000 domainOrService=(null) error=-72000
Logger found service: (null)

I tried configuring with a Bonjour service name and without.

Jason

Trouble building Desktop client in XCode 4

It appears that the instructions for building nslogger are specific to xcode 3. There is no Interface builder 3.0 folder on my computer, and xcode 4 apparently doesn't support plugins.

How do i build the ui without the BWToolkit plugin?

move log leven switching

if you have many modules, changing the log level becomes more and more cumbersome (scrolling down in the partial visible dropdown)

simple buttons on the bottom instead (or sth like a slider) would be much better.

Hide / Show taskbar leaves hole

Manually collapsing the taskbar on left (which, on Lion, is not a great idea as there is no way to uncollapse it), then using hide/show taskbar to restore it leaves a large hole between the taskbar and the list.

Would be necessary to check the actual size of the left pane to determine whether the taskbar is hidden.

Separate info for source code filename, line and method

I currently use a macro like this:

#define _XLogMeta @" <%@:%d> %s\n\n"
#define XLog(fmt, ...) LogMessage(@"xlog", 0, (_XLogMeta @"    " fmt @"\n\n"), [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__);

Wouldn't it be great if the FILE, LINE and PRETTY_FUNCTION macros could be send separately to NSLogger and then become handled in a special way. This would make the following things possible:

  • Show source code info only when needed to get an uncluttered logging
  • Implement a direct 'Jump to source code' into NSLogger to open XCode in the correct file and line where the logging was issued
  • Do some kind of 'source code coverage' to see where most loggings where issued

Thanks for your great effort in making NSLogger such a great tool!

Desktop View Doesn't Build ...

I have followed the instructions exactly as detailed, yet when I come to build the desktop viewer I get 12 errors and 22 warnings.

The warnings all come from BWToolkit, but it still builds successfully. However as soon as it gets to the NSLogger build it fails starting in LoggerWindowController.h stating BWToolkitFramework/BWToolkitFramework.h: No such file or directory.

This would suggest BWToolkit isn't building properly, but I have checked and it does build and I've also delved into the part built NSLogger app package and the toolkit is also present under the Frameworks directory as you would expect.

Can you advise?

color errors/warnings

log levels with lvl 0 should be red.
(in a perfect world, there should be preferences for setting the colors, but red would be 80%)

When using the LogMessageF file, line and function does not appear in the log

Hi,

i'm using the recommended config with macros as follows

define LOG_GENERAL(level, ...) LogMessageF(FILE,LINE,FUNCTION,@"general",level,VA_ARGS)

however in the log (no matter in the viewer or in the Xcode debugger I'm able to see only the messages written by me. Not sure if the issue is misconfiguration or bug.

Empty log view if Consolas font not installed.

If you do not have the "Consolas" font installed on your logging system, then the NSLogger desktop app will not show any logs and will fail silently.

I added the following code to LoggerMessageCell.m's defaultAttributesDictionary class method:

Replace:

NSFont *defaultMonospacedFont = [NSFont fontWithName:@"Consolas" size:11];

With:

NSFont *defaultMonospacedFont = [NSFont fontWithName:@"Consolas" size:11];
if (defaultMonospacedFont == nil)
    defaultMonospacedFont = [NSFont fontWithName:@"Menlo" size:11];
if (defaultMonospacedFont == nil)
    defaultMonospacedFont = [NSFont fontWithName:@"Courier" size:11];

This has a double redundancy, just in case you want to provide the logger to a client to debug a problem.

Desktop client Failing on Mountain Lion

Desktop client is not working on Mountain Lion. Any quick fix
it fails with error
clang: error: no such file or directory: '/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Add markers using API

Markers are great to identify sections. As for now markers are added manually. I'd be very useful to programmatically add markers using API.

resize module name column

I use the file name as module, and they're sometimes long.
Currently the gui cuts them off, hiding the logLevel (which also isn't available in detail view)
a always-visible header or just a way to resize it in the row would help.

Speed up message cell text size evaluation and display

Huge logs come with a price tag: performance degrades when loading large log files or resizing the window, as the software has to recompute the best size for message cells. Layout is currently slow because using NSString's boundingRectWithSize: which has to recreate a layout manager everytime we have to compute a size.

Solutions are:

  • During cell size calculation, provide a layout manager where we just update the text, quickly compute its height and reuse the manager as much as possible
  • Switch to CoreText for calculation and display.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.