There are modules like the audit trail module, but they do have a performance impact. You'll have to look at your use case and see if you need something like that, or if it's more feasible to build something yourself.