A better NSLog implementation