apachesvnloggingmod-dav-svn

mod dav svn apache custom log


Are there any additional details about the SVN repo or file that can be logged when creating a custom apache log, besides {SVN-REPOS-NAME} and {SVN-ACTION} with mod dav svn and apache?

LogFormat "%{%Y-%m-%d %T}t %u@%h %>s repo:%{SVN-REPOS-NAME}e %{SVN-ACTION}e (%B Bytes in %T Sec)" svn_log
CustomLog /var/log/httpd/subversion_log svn_log env=SVN-ACTION

UPDATE:

The question still stands for info only: Are there additional params that can be added to the LogFormat line ?

Thank you in advance.


Solution

  • There is also the SVN-REPOS environment variable, which holds the full filesystem path to the repo (as opposed to SVN-REPOS-NAME, which only holds the basename). See the section on Apache logging in the SVN documentation for details.

    In addition to SVN-ACTION, SVN-REPOS, and SVN-REPOS-NAME, there are other Apache logging format specifiers that you can use to get more details about the HTTP request itself, but not about the SVN repo per se.