updates log-handler to handle apache and user permissions issue.