A super-lightweight logging header for Objective-C projects. Based on Brenwill workshop's Flexible iOS Logging: http://brenwill.com/2010/flexible-ios-logging/
- Just one file - use as an alternative to NSLog
- Supports multiple log levels - Debug, Info, Warning, Error, Trace
- Performance: Logging can be compiled in our out of code with one flag.
- Supports multiple formats - line numbers, file, etc.
Just include OCLogTemplate.h
in your project.
Can be installed via CocoaPods too, for use as a transitive dependency in libraries, etc.
pod 'OCLogTemplate'
LogDebug(@"Message: %@", formatArg);
But no doubt you've heard of those ;)