How do I enable FreeRADIUS to log accounting attribute type X?
You can’t. A RADIUS server will only log the messages which a NAS sends to it. If your NAS is not sending those messages or attributes, then the RADIUS server will not log them. You must configure your NAS to send the information you want to the RADIUS server. Once the NAS is sending the information, the server can then log it.