Improve logger to deal with lists being passed.