For SVN implementations that use the svnserve executable, you can enable server-side logging by passing the --log-file switch when the daemon starts, for example:
# svnserve -d -r /svn --log-file=/var/log/svnserve.log
This will cause the svnserve daemon to go into the /var/log/svnserve.log file.
For thoroughness, the -d switch launches svnserve in "Daemon Mode", and the -r switch specifies the root directory of the SVN repository.
To take my answer another step, you can configure svnserve as a service. This ensures that svnserve starts when the system starts and stops when the system shuts down.
One way to achieve this on Debian (and Ubuntu) systems is described at http://odyniec.net/articles/ubuntu-subversion-server/ , and the author provides an initd script that should function correctly out of the box: http: // odyniec. net / articles / ubuntu-subversion-server / svnserve
For those using this script, registration can be activated by changing the DAEMON_ARGS variable on line 18 (starting from this entry) to look something like this:
DAEMON_ARGS="-d -r /svn --log-file=/var/log/svnserve.log"
Then the service will be started using
and stopped using
The script also accepts restart and force-reload arguments.
source share