Moved a function into base utilities to log a formatted list of items