How to get the SVN server log?

I am trying to find a way to get SVN server logs, but I found a way to get client-side logs using svn:log . How to get server logs?

+6
source share
1 answer

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

 # service svnserve start 

and stopped using

 # service svnserve stop 

The script also accepts restart and force-reload arguments.

+9
source

Source: https://habr.com/ru/post/922371/


All Articles