List all User Selected Elements to Log File

Have you searched the forum for an answer? There are many topics on selecting elements by ID. Such as Use ID to select objects in Revit