log uid names with formatting
Reinier's solution is much cleaner