How to log custom metadata in a table format