Adding logger support to log the message sent to APNS