Got the logging working finally. I think