Added logger

Working on adding logger support, currently mid-transition.