A replacement of NSLog.