|
From: Oded B. <Ode...@in...> - 2004-07-13 07:16:07
|
Thank you. Actually my problem was a stupid classpath problem, and was solved. =20 Thanks again for your responses. Oded -----Original Message----- From: wra...@li... = [mailto:wra...@li...]On Behalf Of Jennifer = Kolar Sent: ?? 13 ???? 2004 4:36? To: wra...@li... Subject: Re: [Wrapper-user] Log4J problem. I use log4j and the wrapper logging togther.=20 You need to have atleast INFO level logging enabled in the wrapper = config file to get messages from the inner wrapped application.=20 I have used the SysLog, Console and RollingFile appenders w/ no issues.=20 You should see in effect duplicate logging- logging specified in the = wrapper conf file and any logging you specify in the log4j.xml file.=20 Jennifer=20 On Jun 21, 2004, at 9:35 PM, Leif Mortenson wrote:=20 Oded,=20 What version of the Wrapper are you using?=20 Starting with 3.1.0, the WrapperManager overrides the System.out and = System.err=20 print streams with wrapper streams. This was necessary to implement some = logging=20 features.=20 This should not have affected log4j as it should simply make use of the = wrapped=20 streams as usual. Other programs that do the same thing have been = working=20 correctly.=20 I am not a log4j user myself. If you could write up a very simple java = program=20 which demonstrates this problem then I will try running it both with and = without the=20 Wrapper and attempt to find out where the problem, if any, is. Getting = me a=20 sample program helps out a lot as 95% of the time tracking down such = problems=20 is often taken figuring out how to set up the test case.=20 Cheers,=20 Leif=20 Oded Blayer wrote:=20 I am trying to use Java Service Wrapper on an application that uses = log4j.=20 The problem I encounter is that all of my log messages are going = directly into the wrapper log, instead of the logs I specified in my = log4j.xml config file.=20 Is there any reason that the wrapper will override the Log4J?=20 Is there a log4J.xml to the wrapper, to which I can add my appenders?=20 -------------------------------------------------------=20 This SF.Net email sponsored by Black Hat Briefings & Training.=20 Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital = self defense, top technical experts, no vendor pitches, unmatched = networking opportunities. Visit www.blackhat.com=20 _______________________________________________=20 Wrapper-user mailing list=20 Wra...@li...=20 https://lists.sourceforge.net/lists/listinfo/wrapper-user=20 |