Logger class now working