Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 96838 invoked from network); 29 Mar 2008 20:47:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Mar 2008 20:47:59 -0000 Received: (qmail 60086 invoked by uid 500); 29 Mar 2008 20:47:52 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 60064 invoked by uid 500); 29 Mar 2008 20:47:52 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 60053 invoked by uid 99); 29 Mar 2008 20:47:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2008 13:47:52 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 76.96.30.16 is neither permitted nor denied by domain of hoju@visi.com) Received: from [76.96.30.16] (HELO QMTA01.emeryville.ca.mail.comcast.net) (76.96.30.16) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2008 20:47:01 +0000 Received: from OMTA11.emeryville.ca.mail.comcast.net ([76.96.30.36]) by QMTA01.emeryville.ca.mail.comcast.net with comcast id 70g91Z0080mlR8UA10Ty00; Sat, 29 Mar 2008 20:46:13 +0000 Received: from [127.0.0.1] ([24.118.112.242]) by OMTA11.emeryville.ca.mail.comcast.net with comcast id 78nJ1Z0025Dqp2G8X00000; Sat, 29 Mar 2008 20:47:19 +0000 X-Authority-Analysis: v=1.0 c=1 a=SRr4yNWlnWIA:10 a=3yEGapoGe-Aw192KjOEA:9 a=7mNnRC177338pNlX0ZrjOsK7U5wA:4 a=5FtdkfQUxfIA:10 Message-ID: <47EEB8EE.6080503@visi.com> Date: Sat, 29 Mar 2008 15:47:26 -0600 From: Jacob Kjome User-Agent: Thunderbird 2.0.0.6 (Windows/20070828) MIME-Version: 1.0 To: Log4J Users List Subject: Re: Multiple endpoints in single war References: <16274776.post@talk.nabble.com> In-Reply-To: <16274776.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Relayed-By: GPGrelay Version 0.959 (Win32) X-Virus-Checked: Checked by ClamAV on apache.org Well, assuming each webservice uses differently named loggers, then you can separate them that way. Of course, this doesn't help you in the case of library code that is shared between the webservices. That is, there is no way to differentiate a call to a shared library coming from one service -vs- another. You could get really created and come up with a repository selector that differentiates the services within the same WAR. I can't think of a way to do it. The traditional ways such as classloader-based (not recommended) and JNDI-based (recommended) would apply to the entire webapp, not individual services within the webapp. Jake oscar1984 wrote: > Hi, > > I'm using cxf to create several webservices. Currently they are all > deployed in one war file. What I would like is to configure log4j such that > the output from each webservice goes to a different log file. Hopefully > that's not too strange a thing to do. Can anyone help? > > Thanks > > E --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org