News for hackers. Stuff that matters.
Re:NSLogger – a flexible logging tool for OS X and iOS by macrael on Sunday January 06, 2013 @03:18PM (#5017567)
You might want to consider renaming this project. The NS prefix is reserved by apple for framework classes. The entire purpose of prefixing classes in Cocoa is to prevent namespace collisions between different organizations, which using NS outside of apple breaks. It doesn't actually look like you are using the NS prefix in any of your code, so you're not technically violating the below rule, but I still think it worth considering. NS kindof means "from apple".

"Objective-C classes must be named uniquely not only within the code that you’re writing in a project, but also across any frameworks or bundles you might be including. As an example, you should avoid using generic class names like ViewController or TextParser because it’s possible a framework you include in your app may fail to follow conventions and create classes with the same names.

In order to keep class names unique, the convention is to use prefixes on all classes. You’ll have noticed that Cocoa and Cocoa Touch class names typically start either with NS or UI. Two-letter prefixes like these are reserved by Apple for use in framework classes...

Your own classes should use three letter prefixes. These might relate to a combination of your company name and your app name, or even a specific component within your app. As an example, if your company were called Whispering Oak, and you were developing a game called Zebra Surprise, you might choose WZS or WOZ as your class prefix."

http://developer.apple.com/library/ios/#documentation/cocoa/...

In practice many people use two letter prefixes for their classes, you should use a prefix with your classes!

The project looks great, I've been wishing for a more comprehensive logging system with filtering built in for a while now. Thanks!

Re:NSLogger – a flexible logging tool for OS X and iOS by umrashrf on Monday January 07, 2013 @05:17AM (#5020316)
When I used this tool, I found it exactly what I was looking for. Although at first looking at the name I didn't think it would do the job so renaming it to something that says "a network logger"

Examples: NLogger, CNLogger (Cocoa Network Logger), etc

Re:NSLogger – a flexible logging tool for OS X and iOS by GuiA on Sunday January 06, 2013 @04:32PM (#5017828)
Side question: Did NS initially stand for NextStep, or am I completely off?
Re:NSLogger – a flexible logging tool for OS X and iOS by mparramon on Sunday January 06, 2013 @05:57PM (#5018114)
Re:NSLogger – a flexible logging tool for OS X and iOS by weaksauce on Sunday January 06, 2013 @04:34PM (#5017833)
That's exactly what it is named.
Re:NSLogger – a flexible logging tool for OS X and iOS by i386 on Sunday January 06, 2013 @05:21PM (#5018006)
From what I have read, the prefix used to be NX* in the NeXTSTEP days and was changed to NS* around the time OpenStep came on the scene.
Re:NSLogger – a flexible logging tool for OS X and iOS by millerm on Sunday January 06, 2013 @08:49PM (#5018771)
Actually, I believe the actual prefix of NS originally meant Next/Sun whe Next was working with Sun Microsystems. But, who knows? We need one of the original developers to help clear this up.
Re:NSLogger – a flexible logging tool for OS X and iOS by Zev on Sunday January 06, 2013 @06:02PM (#5018135)
The project itself is the only thing that uses the NS prefix. The classes within the project have the (rather long and safe) prefix of "Logger".
Re:NSLogger – a flexible logging tool for OS X and iOS by to3m on Sunday January 06, 2013 @06:50PM (#5018328)
It's not really a prefix, though, because there's a struct called "Logger", and there are some enums that begin with 'k', and there's a #define called "ALLOW_COCOA_USE", just like something somebody might put in their own code.

If you're writing a library, you really need to prefix absolutely every last stupid symbol, right down to the header include guards. If you don't, even if they don't end up conflicting with something, you'll have people like me moaning about it. (But I don't moan about it because it's never caused me a problem in the past.)

Looks like a neat library though!

Re:NSLogger – a flexible logging tool for OS X and iOS by MaxGabriel on Sunday January 06, 2013 @06:05PM (#5018144)
I agree with Zev on this. There's no harm if the code itself doesn't use the `NS` prefix -- the concern in the rest of the comments is overblown.