Add error logger to APNS