Change logger into a singleton

Changing the logger into a singleton that uses getInstance to grab the
logger instance as opposed to passing it about everywhere.