Added logger and replaced Console with it