Simple, small, fast logging framework for iOS apps
If you have any comments please use the Messages tab above to post a comment. If you find a bug or have a feature request please use the Tickets tab above.
For more information, please check out my information at http://jason.agostoni.net.
To use SNLog just include SNLog.h and SNLog.m in your project. Add the import to your _prefix.pch file and all NSLog statements will directed to NSLog.
Creates a simple log entry with default logging (to the console)
[SNLogLog:@"Test: %@", aString];
Adds logging to a file:
SNFileLogger *logger = [[SNFileLoggeralloc] initWithPathAndSize:@"path_to/log.txt"]: 100000];
NSLog is re-defined by default...
NSLog(@"NSLog: %@", @"works too");