Extracted console logging functions into their own class.
Added some logger tests.