Changed logger usage to use the basic functions