You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor formatted/unformatted log flow
• Rename outputToLog() -> logFormatted() which is less ambiguous
• Make logFormatted() and log() module-private to force use of convenience methods
• Separate public convenience functions to call them out as such
Warn callers that don't pass format literals
• Via NS_FORMAT_FUNCTION macro
Some external callers have been seen abusing this abstraction and passing a pre-formatted message with no varargs to the Aspen___ C function helpers, which is incorrect, unstable, and insecure. Callers with pre-formatted messages should not be using varargs, rather -[Aspen verbose:] or its siblings. This macro warns at build-time that you're doing it wrong, as NSLog does.