Moved logging functions to Logger object