|
From: Jennifer K. <jk...@si...> - 2004-07-13 01:36:23
|
I use log4j and the wrapper logging togther. You need to have atleast INFO level logging enabled in the wrapper config file to get messages from the inner wrapped application. I have used the SysLog, Console and RollingFile appenders w/ no issues. You should see in effect duplicate logging- logging specified in the wrapper conf file and any logging you specify in the log4j.xml file. Jennifer On Jun 21, 2004, at 9:35 PM, Leif Mortenson wrote: > Oded, > What version of the Wrapper are you using? > > Starting with 3.1.0, the WrapperManager overrides the System.out > and System.err > print streams with wrapper streams. This was necessary to implement > some logging > features. > > This should not have affected log4j as it should simply make use of > the wrapped > streams as usual. Other programs that do the same thing have been > working > correctly. > > I am not a log4j user myself. If you could write up a very simple > java program > which demonstrates this problem then I will try running it both with > and without the > Wrapper and attempt to find out where the problem, if any, is. > Getting me a > sample program helps out a lot as 95% of the time tracking down such > problems > is often taken figuring out how to set up the test case. > > Cheers, > Leif > > Oded Blayer wrote: > >> I am trying to use Java Service Wrapper on an application that uses >> log4j. >> 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. >> Is there any reason that the wrapper will override the Log4J? >> Is there a log4J.xml to the wrapper, to which I can add my appenders? > > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > 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 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |