Then I would run with -Dlog4j.debug so you can see how it is being configured.
On 6/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
For each application, the log4j.xml and the log4j.jar are located in the WEB-INF/lib directory. But I still don't understand why I log instructions are always written in the same file. meissa "James Stauffer" <[EMAIL PROTECTED]> 14/06/2006 19:59 Veuillez répondre à "Log4J Users List" <[email protected]> A "Log4J Users List" <[email protected]> cc Objet Re: poblem with multiple application configurations Please specify where your log4j.xml and log4j.jar files are. You probably want log4j.jar and log4j.xml in WEB-INF/lib and nowhere else. On 6/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi all, > I have several applications and I have trouve while trying to have a log > file per application. > For each application I define a log4j.xml file in it's classpath. But > instead of having separate log files, > all log instructions are written in the same log file. > > Can someone tells me what to change in order to have my logs instructions > in the files they are intended to. > > here is an example of a log4j.xml file > For each application, I only change the log file name(in bold). > > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" > debug="false"> > > <appender name="FILE" > class="org.apache.log4j.DailyRollingFileAppender"> > <param name="File" value="/var/log/jboss/intraneta/webapps/ > my_application_name.log"/> > <param name="Threshold" value="ERROR"/> > <param name="Append" value="false"/> > > <layout class="org.apache.log4j.PatternLayout"> > <!-- The default pattern: Date Priority [Category] Message\n --> > <param name="ConversionPattern" value="%d %-5p %c{1} [%M] - > %m%n"/> > > </layout> > </appender> > > <root> > > <appender-ref ref="FILE"/> > </root> > > </log4j:configuration> > > thanks in advance. > > Meissa > > L'integrite de ce message n'etant pas assuree sur internet, Natexis > Banques Populaires ne peut etre tenu responsable de > son contenu. Toute utilisation ou diffusion non autorisee est > interdite. Si vous n'etes pas destinataire de ce message, merci de le > detruire et d'avertir l'expediteur. > > The integrity of this message cannot be guaranteed > on the Internet. Natexis Banques Populaires can not therefore be > considered responsible for the contents.Any unauthorized use or dissemination is prohibited. > If you are not the intended recipient of this message, then please delete it and > notify the sender. > -- James Stauffer Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] L'integrite de ce message n'etant pas assuree sur internet, Natexis Banques Populaires ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. The integrity of this message cannot be guaranteed on the Internet. Natexis Banques Populaires can not therefore be considered responsible for the contents.Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender.
-- James Stauffer Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
