See here for logging this information:
You would need to modify it for your need but it explains the basics and advanced use of how to add this information and it can be accessed via reports.
See here for logging this information:
You would need to modify it for your need but it explains the basics and advanced use of how to add this information and it can be accessed via reports.