A complete log system with Objective-C