Log in differents files

2008-09-24 Thread André Carlos
Hi, I'm like make logs of different packages in differents files, but, after try much not achieve a configuration corret. please, i need a hand sds carpe diem ama sua, ama llulla, ama chella André Carlos == NETiq

Re: Log in differents files

2008-09-24 Thread Jacob Kjome
It would be helpful to see your config.  But I can imagine what you might be missing.  You need to look into the concept of additivity.  By default it is "true".  This means that a child inherits the appenders and levels of parents.  You want to set this to false.  For instance, the following co

Re: Log in differents files

2008-09-24 Thread André Carlos
Is exactly what i need, but, don't work here. The order what i put the configs influences the final result? sds carpe diem ama sua, ama llulla, ama chella André Carlos == NETiqueta: Ao encaminhar esta mensagem, po

Re: Log in differents files

2008-09-24 Thread Jacob Kjome
I don't think that the properties config format imposes any particular ordering.  What do you mean it isn't working?  what isn't working?  Please post a sample of your config.  You can also start your app with -Dlog4j.debug=true and see if Log4j is even using your config file.  Keep in mind, if

Re: Log in differents files

2008-09-24 Thread André Carlos
the log4j write only in first appender, in the second appender it create the file but dont't write the log log4j.debug=true log4j.rootLogger=DEBUG, Console, A1 log4j.appender.Console=org.apache.log4j.ConsoleAppender log4j.appender.Console.layout=org.apache.log4j.PatternLayout log4j.appender.Cons

Log4j Version # 1.2.8 occasionally stops logging without any error message

2008-09-24 Thread Vijendra Rai
Hi, I work as technical support Engineer at a software company We use log4j within our applications for logging, It is a java based application running under WebLogic version 8.1 and Sun JVM 1.4.2 One of our customer reported that occasionally Log4j stops logging without any apparent reas

Re: Log4j Version # 1.2.8 occasionally stops logging without any error message

2008-09-24 Thread Ceki Gulcu
Vijendra Rai wrote: [snip] I can see additional logging messages coming into the server console now, but it does not provide any indication of why sometime logging stops. Can someone provide some ideas what I should do next? Is this a Log4j bug? Hello Vin, It would probably help if you inclu

Re: Log in differents files

2008-09-24 Thread Jacob Kjome
You're saying you see logging on the Console but not in the A1 appender file (${catalina.home}/logs/A1.log)?  That doesn't make much sense.  It's possible that there is an order, and that you need to place your root logger below the appender definitions.  Try that. Note that the loggers config

Re: Log in differents files

2008-09-24 Thread André Carlos
is this, i had to do one change to send the conf file the correct is: it loggin in A1 e in the Console, but, not logging in A2 sorry sds carpe diem ama sua, ama llulla, ama chella André Carlos == NETiqueta: Ao e

Re: Log in differents files

2008-09-24 Thread Curt Arnold
On Sep 24, 2008, at 2:42 PM, Jacob Kjome wrote: You're saying you see logging on the Console but not in the A1 appender file (${catalina.home}/logs/A1.log)? That doesn't make much sense. It's possible that there is an order, and that you need to place your root logger below the appender

Re: Log in differents files

2008-09-24 Thread Jacob Kjome
So, you're saying it's still a problem for you even after changing the config the way I suggested?  Or are you saying it all works now? Jake On Wed, 24 Sep 2008 16:53:11 -0300 "André Carlos" <[EMAIL PROTECTED]> wrote: is this, i had to do one change to send the conf file the correct is: it

Re: Log in differents files

2008-09-24 Thread André Carlos
yes, i'm sure that this is logged, and this content should be logged A2, the rest shold be logged in A1, and A1 and A2 should be logged in Console sds carpe diem ama sua, ama llulla, ama chella André Carlos == NETi

Re: Log in differents files

2008-09-24 Thread André Carlos
still does't work, i made the changes and not work sds carpe diem ama sua, ama llulla, ama chella André Carlos == NETiqueta: Ao encaminhar esta mensagem, por favor: 1. Apague o MEU endereço eletrônico; 2. Encaminh

Re: Log in differents files

2008-09-24 Thread Jacob Kjome
No, A2 logging will *not* end up in the Console because the additivity for the logger that uses A2 is false.  It will *only* appear in A2.  A1 and Console should get identical logging.  And you never addressed my question of whether you corrected your config for the "br.gov.ba.ssp.sigip.tarefa

Re: Log in differents files

2008-09-24 Thread André Carlos
I correct, but not worked I will try to explain more, I want what it logged certain package in A1 and others in A2, and the Console logged the union of A1 and A2 sds carpe diem ama sua, ama llulla, ama chella André Carlos =

Re: Log in differents files

2008-09-24 Thread Jacob Kjome
André Carlos wrote: > I correct, but not worked > > I will try to explain more, I want what it logged certain package in A1 and > others in A2, and the Console logged the union of A1 and A2 How do you expect this... log4j.logger.br.gov.ba.ssp.sigip.tarefas=DEBUG,A2 log4j.additivity.br.gov.ba.ssp