[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: how can I redirect Subversion/apache msgs to a new file

From: <david.x.grierson_at_jpmorgan.com>
Date: Thu, 17 Jan 2008 10:30:02 +0000

Works fine for me ... thanks for the idea :-)

[16/Jan/2008:05:40:18 -0500] - update '/tags/DEV2'
[16/Jan/2008:05:40:47 -0500] v026091 unlock '/tags/DEV2/README.txt'
[16/Jan/2008:06:05:15 -0500] - remote-status '/trunk'
[16/Jan/2008:06:05:42 -0500] v026091 commit r53
[16/Jan/2008:06:10:41 -0500] - remote-status '/tags/DEV2'
[16/Jan/2008:06:11:19 -0500] - switch '/tags/DEV2' '/trunk'
[16/Jan/2008:06:11:24 -0500] - list-dir '/trunk/'
[16/Jan/2008:06:11:26 -0500] - list-dir '/trunk/'
[16/Jan/2008:06:11:32 -0500] - switch '/trunk' '/tags/DEV4'
[16/Jan/2008:06:11:35 -0500] - switch '/tags/DEV4' '/tags/DEV2'
[16/Jan/2008:06:11:38 -0500] - switch '/tags/DEV2' '/tags/DEV3'
[16/Jan/2008:06:11:39 -0500] - switch '/tags/DEV3' '/tags/DEV1'
[16/Jan/2008:06:11:43 -0500] - switch '/tags/DEV1' '/tags/DEV2'

CustomLog logs/svn-actions.log "%t %u %{SVN-ACTION}e" env=SVN-ACTION

I've even tried it using it as a pipe with rotatelog and that works fine

CustomLog "|/usr/sbin/rotatelogs logs/svn-actions.log 86400" "%t %u

Need to expand it a wee bit to get the repository name into the log as
well though.


David Grierson
JPMorgan - IB Architecture - Source Code Management Consultant
GDP 228-5574 / DDI +44 141 228 5574 / Email david.x.grierson_at_jpmorgan.com
Alhambra House 6th floor, 45 Waterloo Street, Glasgow G2 6HS
michael <cs_at_networkingnewsletter.org.uk> 
16/01/2008 17:48
how can I redirect Subversion/apache msgs to a new file
I asked yesterday about this but I think my original subject ("how to
customise Apache2 logs") wouldn't have caught the attention of
Subversion guys so apols for having to resend this...
I've tried following the subversion/svn example for putting svn-related
(over Apache/http) activities into a new log and decyphering the
actions, but nothing is appearing in my logfile (but it has been
>From http://svnbook.red-bean.com/en/1.4/svn.serverconfig.httpd.html, it
 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
 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'm running Apache2 on Debian and 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 
 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_at_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 "-"
 (r25188) neon/0.25.5"
 Can anybody point out what I've overlooked?
Many thanks, Michael
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Generally, this communication is for informational purposes only
and it is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation
of any transaction. In the event you are receiving the offering
materials attached below related to your interest in hedge funds or
private equity, this communication may be intended as an offer or
solicitation for the purchase or sale of such fund(s).  All market
prices, data and other information are not warranted as to
completeness or accuracy and are subject to change without notice.
Any comments or statements made herein do not necessarily reflect
those of JPMorgan Chase & Co., its subsidiaries and affiliates.
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.
Received on 2008-01-17 11:30:53 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.