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

Re: How to get the repository in custom log?

From: Andrew Bickerton <bickerton_andrew_at_hotmail.com>
Date: 2007-11-07 02:41:26 CET

On: 2007-07-19 at 12:21:17 CEST, Ryan Schmidt wrote:

>On Jul 19, 2007, at 04:46, Marziou, Gael wrote:

>> I am running Apache + SVN 1.4.4 and I setup a custom log format as
>> indicated in the SVN book.
>> LogFormat "%t %u %{SVN-ACTION}e" svn
>> CustomLog logs/svn_logfile svn env=SVN-ACTION
>> The problem is that it mod_dav_svn logs actions but without the
>> repository:
>> [19/Jul/2007:11:27:22 +0200] gael list-dir '/tests/trunk/'
>> [19/Jul/2007:11:27:22 +0200] gael checkout-or-export '/tests/trunk'
>> I would have expected:
>> [19/Jul/2007:11:27:22 +0200] gael list-dir '/repo1/tests/trunk/'
v> [19/Jul/2007:11:27:22 +0200] gael checkout-or-export
>> '/repo1/tests/trunk'
>> Is it possible to get this behavior?

> I'm not aware of a way to get that behavior, though I agree it would
> be nice to have.

I found something which comes close:

CustomLog logs/subversion.log "%t %u@%h %U %{SVN-ACTION}e" env=SVN-ACTION
gives entries like:
[07/Nov/2007:14:23:27 +1300] \\@192.168.n.nn /svn/sandbox/!svn/bc/2/trunk log-all '/trunk'

%U writes the requested URL path: /svn/sandbox/!svn/bc/2/trunk in this case. It's not pretty, but it does at least identify the repo, 'sandbox'.

The full CustomLog reference is here: http://httpd.apache.org/docs/2.0/mod/mod_log_config.html

Express yourself instantly with MSN Messenger! Download today it's FREE!
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 7 07:29:36 2007

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.