I bear this in mind when playing with the fix you have provided.




Peter Donald <[EMAIL PROTECTED]> on 22/12/2001 12:46:51

Please respond to "Avalon Developers List" <[EMAIL PROTECTED]>

To:   "Avalon Developers List" <[EMAIL PROTECTED]>
cc:

Subject:  Re: Logkit: Target Additivity

On Wed, 19 Dec 2001 13:41, [EMAIL PROTECTED] wrote:
> It is prevented from doing so by the following chunk of code in the log
> method of class Logger:
>
>             if( m_logTargetsForceSet && m_additivity && null != m_parent
)
>             {
>                 m_parent.output( event );
>             }
>
> m_logTargetsForceSet  is only set when a target is added but as logger3
> uses the inherited handler and not one of its own, it only logs to
> LKAdd2.txt and refuses to log to any parent targets.
>
> I could not find any description as to how additivity is actually handled
> so is this a defect?

This is a defect. Im not sure exactly how to fix it though. If we didn't
check m_logTargetsForceSet then the class would print out twice to the
targets inherited from logger2. You got any ideas on how to fix this
without
large overheads?

--
Cheers,

Pete

------------------------------------
The two secrets to success:
   1- Don't tell anyone everything.
------------------------------------

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










****************************************************************
NOTICE - This message is intended only for the use of the 
addressee named above and may contain privileged and 
confidential information.  If you are not the intended recipient
of this message you are hereby notified that you must not 
disseminate, copy or take any action based upon it.  If you 
received this message in error please notify HIC immediately.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of HIC.
****************************************************************

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

Reply via email to