tags:

views:

92

answers:

3

Hi,

Is there a way to log read accesses to an svn repo ? Any SVN configs (or tools/scripts) which can do this ?

I found svn-access-manager, but not sure if it logs access. Also, it requires a mysql/apache setup. Something that writes to a file would be fine.

Thanks !

A: 

Apache access.log seems to have what I want. Not sure if there are any better alternatives. Will wait for suggestions for a while before closing the question.

Abhinav
+3  A: 

Apache's log is what you want. Subversion itself doesn't log access separately.

Brannon
+4  A: 

Logging is only available in apache. In apache you can either use the cryptic access.log with each single WebDAV-Request or you can use a more svn specific log:

To enable a log which will log only subversion actions, place a directive like this outside your location:

CustomLog logs/svn_logfile "%t %u %{SVN-ACTION}e" env=SVN-ACTION

Look here for more details:

http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.serverconfig.httpd.extra.logging

More on the apache variable available in logfile: http://httpd.apache.org/docs/2.0/mod/mod_log_config.html#formats

Peter Parker