You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by michael <cs...@networkingnewsletter.org.uk> on 2008/01/15 22:25:17 UTC

Fwd: how to customise Apache2 logs

I sent the below to a Debian list but didn't get a response so  
perhaps some kind person here could point me in the right direction?  
Ta, M

Begin forwarded message:

> Resent-From: debian-user@lists.debian.org
> From: michael <cs...@networkingnewsletter.org.uk>
> Date: 11 January 2008 17:46:54 GMT
> To: debian user <de...@lists.debian.org>
> Subject: how to customise Apache2 logs
>
> I'm trying to follow the subversion/svn example for putting svn- 
> related
> (over http) activities into a new log and decyphering the actions, but
> nothing is appearing in the new log.
>
>> From http://svnbook.red-bean.com/en/1.4/ 
>> svn.serverconfig.httpd.html, it
> says
>
> mod_dav_svn, however, can come to your aid. By activating an
> “operational logging” feature, you can ask mod_dav_svn to create a
> separate log file describing what sort of high-level operations your
> clients are performing.
>
> To do this, you need to make use of Apache's CustomLog directive  
> (which
> is explained in more detail in Apache's own documentation). Be sure to
> invoke this directive outside of your Subversion Location block:
>
> <Location /svn>
>   DAV svn
>   …
> </Location>
>
> CustomLog logs/svn_logfile "%t %u %{SVN-ACTION}e" env=SVN-ACTION
>
> In this example, we're asking Apache to create a special logfile
> svn_logfile in the standard Apache logs directory. The %t and %u
> variables are replaced by the time and username of the request,
> respectively. The really important part are the two instances of
> SVN-ACTION. When Apache sees that variable, it substitutes the  
> value of
> the SVN-ACTION environment variable, which is automatically set by
> mod_dav_svn whenever it detects a high-level client action.
>
>
>
> I've added what I think is a suitable CustomLog (I've tried both
> to /etc/apache2/apache2.conf and/or
> to /etc/apache2/mods-available/dav_svn.conf):
> 	CustomLog /var/log/apache2/subversion.log "%t %u %{SVN-ACTION}e"
> env=SVN-ACTION
>
> but although the file is created nothing is being added to it, and I'm
> still seeing copies of the Apache/svn cmds in apache2/access.log:
>
> michael@ratty:/usr/local/SUBVERSION$ tail /var/log/apache2/access.log
> veri.phy.umist.ac.uk - atmos_svn [11/Jan/2008:17:34:01 +0000]
> "PROPFIND /svn/atmos_modelling/OpenMP_2 HTTP/1.1" 207 463 "-" "SVN/ 
> 1.4.4
> (r25188) neon/0.25.5"
> {etc}
>
> Can anybody point out what I've overlooked?
> thanks, Michael
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org