views:

199

answers:

2

Hi all,

I would like to know if it is possible to get audit logs on only one document library or list. I wouldn't like to do it at site collection or server farm level.

Also, is it possible in the audit logs to get information for the case of editing, what the original information was before editing and the new information?

Thanks in advance,

Matrich

+2  A: 

http://stackoverflow.com/questions/2341779/create-an-eventreceiver-for-logging-changes-made-by-users-in-lists

Don Carnage
Hi Don,Isn't there a way of doing this out of the box without writing code? Otherwise, thanks for the link.
Matrich
Hi Don, I have successfully created an Event Handler for this. However, Is it possible to attach it to only a content type so that all lists create from that content type have that event handler?I guess the answer is yes. So if yes, where do I get the ListTemplateId to put in the feature.xml file. For now, I am using 100 as ListTemplateId which applies to all generic lists.Thanks
Matrich
+1  A: 
  1. In List Settings (or Library Settings) choose Information Management Policy settings.
  2. Choose the "Define a policy..." radio button and choose OK.
  3. Check the "Enable auditing" check box and that will show the auditable events that you can enable. Choose the ones that you want to track and click OK.

As for keeping track of what changed...I believe you will be better served by versioning enabled.

Mark Mascolino