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.sigip.tarefas=false

...to log to the A1 Appender?????

Your root logger is set to log to A1 and Console with A2 applied to the logger
"br.gov.ba.ssp.sigip.tarefas" (and its children).  Your expectations appear to 
be
wrong, not Log4j.  Here's what I expect from your config...

All logging goes to A1 and Console except for "br.gov.ba.ssp.sigip.tarefas" (and
child loggers), which will log to the A2 appender.  Logging output in A1 and
Console will be identical and exclusive to any logging that takes place in A2.

If you want "br.gov.ba.ssp.sigip.tarefas" and children to go to both A1 and
Console (and not A2, as you previously stated), then you should declare this....

log4j.logger.br.gov.ba.ssp.sigip.tarefas=DEBUG, A1, Console
log4j.additivity.br.gov.ba.ssp.sigip.tarefas=false


Also, I'm not clear on whether you want specific packages to go to A2 or just 
all
packages other than the ones you want to go to A1.  I'm going to assume the 
latter
and say you want your root logger to be...

log4j.rootLogger=DEBUG, A2, Console



Jake

> 
> 
> --------------------------------------------------------
> 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. Encaminhe como cópia oculta (CCO; BCC) aos SEUS destinatários.
> Obrigado!
> Yogi Berra  - "You wouldn't have won if we'd beaten you."
> 
> On Wed, Sep 24, 2008 at 17:07, Jacob Kjome <[EMAIL PROTECTED]> wrote:
> 
>> 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.tarefas
>> logger".
>>
>> Jake
>>
>>
>> On Wed, 24 Sep 2008 17:02:24 -0300
>>  "André Carlos" <[EMAIL PROTECTED]> wrote:
>>
>>> 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
>>> ==============================
>>> NETiqueta:
>>> Ao encaminhar esta mensagem, por favor:
>>> 1. Apague o MEU endereço eletrônico;
>>> 2. Encaminhe como cópia oculta (CCO; BCC) aos SEUS destinatários.
>>> Obrigado!
>>> Fred Allen  - "What's on your mind, if you will allow the overstatement?"
>>>
>>> On Wed, Sep 24, 2008 at 16:56, Curt Arnold <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>> 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 definitions.  Try that.
>>>>>
>>>>> Note that the loggers configured to use your A2 appender looks
>>>>> misconfigured...
>>>>>
>>>>> log4j.logger.br.gov.ba.ssp.sigip.tarefas=DEBUG,A2
>>>>> log4j.additivity.com.app.tarefas=false
>>>>>
>>>>> Shouldn't that be?...
>>>>>
>>>>> log4j.logger.br.gov.ba.ssp.sigip.tarefas=DEBUG,A2
>>>>>
>>>>> log4j.additivity.br.gov.ba.ssp.sigip.tarefas=false
>>>>>
>>>>>
>>>>> Jake
>>>>>
>>>>>
>>>>>  You would add the second line if you did not want messages logged on
>>>> "br.gov...tarefas" also logged to A1.log.
>>>>
>>>> Are you sure that you actually logged anything on "br.gov...tarefas"?
>>>>  That
>>>> is did A1.log contain some entries what that logger name in them?  Having
>>>> an
>>>> empty A2.log file would be as expected if you never logged anything to
>>>> that
>>>> particular logger.
>>>>
>>>> Your ImmediateFlush lines appear to have extraneous trailing colons.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to