Add a persistent debug log to assist troubleshooting.