Re: how can I redirect Subversion/apache msgs to a new file
From: <david.x.grierson_at_jpmorgan.com>
Date: Thu, 17 Jan 2008 15:12:15 +0000
What version of Subversion are you using? SVN-ACTION was only introduced
Dg.
-- 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> 17/01/2008 14:49 To users_at_subversion.tigris.org cc KM <info4km_at_yahoo.com>, david.x.grierson_at_jpmorgan.com Subject Re: how can I redirect Subversion/apache msgs to a new file On Thu, 2008-01-17 at 10:30 +0000, david.x.grierson_at_jpmorgan.com wrote: > 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 > too: > > CustomLog "|/usr/sbin/rotatelogs logs/svn-actions.log 86400" "%t %u > %{SVN-ACTION}e" env=SVN-ACTION > > Need to expand it a wee bit to get the repository name into the log as > well though. > > Dg. David, KM (hope okay to CC you?) et al, Glad you've both got it working. I'm using a Debian dist of Apache2 which, if I understand correctly, doesn't use httpd.conf but for general stuff uses apache2.conf and for modules uses the relevant module conf file eg mods-available/dav_svn.conf I've attached my mods-available/dav_svn.conf which seems fine as far as I can tell. (I've also tried the CustomLog in the apache2.conf but no help) And here's the permissions set for the required logfile (you can see that Apache2 has created it but then I changed the permissions/ownership from root:root) michael_at_ratty:/var/log/apache2$ lshead total 7480 -rw-r----- 1 root adm 4890980 Jan 17 14:36 access.log -rw-r----- 1 root adm 1428669 Jan 17 14:36 error.log drwxr-xr-x 2 root root 4096 Jan 17 14:29 ./ -rw-rw-r-- 1 root www-data 0 Jan 17 14:29 subversion.log drwxr-xr-x 17 root root 4096 Jan 17 06:26 ../ I run Apache2 as www-data: michael_at_ratty:/var/log/apache2$ ps -elf|grep apache 1 S root 16548 1 0 78 0 - 2662 - 14:36 ? 00:00:00 /usr/sbin/apache2 -k start 5 S www-data 16549 16548 0 78 0 - 2605 375754 14:36 ? 00:00:00 /usr/sbin/apache2 -k start 5 S www-data 16550 16548 0 78 0 - 58136 pipe_w 14:36 ? 00:00:00 /usr/sbin/apache2 -k start 5 S www-data 16552 16548 0 82 0 - 58068 pipe_w 14:36 ? 00:00:00 /usr/sbin/apache2 -k start 0 S michael 16621 16237 0 78 0 - 819 pipe_w 14:38 pts/3 00:00:00 grep apache Any ideas what I've overlooked? Thanks, Michael [attachment "dav_svn.conf" deleted by David X Grierson/JPMCHASE] --------------------------------------------------------------------- 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. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org For additional commands, e-mail: users-help_at_subversion.tigris.orgReceived on 2008-01-17 16:33:37 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.