title: How should I handle logs in an Objective-C library?
body: <p>I’m writing an Objective-C library and in some places I’d like to log some information. Using <code>NSLog</code> is not ideal since it’s not configurable and has neither level support nor tag support. CocoaLumberjack and NSLogger are both popular logging libraries supporting levels and contexts/tags but I’d prefer not to depend on a third party logging library.</p>
  
  <p>How can I produce logs in a configurable way that doesn’t force a specific logging library upon my users?</p>