moved logging functions back to logger. Allows for more information in log now