changed method for writing logs

per https://github.com/csauvage/Safari-Push-Notifications/commit/201dc12f3a2337cb14bed0f98bcb8e66bf261e83