This code sends all the automatic information to Mautic and adds also email and firstname. Your method will have to produce the values of those fields. Server logs are in various areas based upon your setup. Ubuntu servers typically retail store their logs in /var/log/apache2/error.log. At times your hosting provider https://www.hostscheap.com/mautic-update-service