You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by lo...@xemaps.com on 2005/04/19 02:43:24 UTC

Re: Extend or Wrap

There is a reason to Extend.  If you want to use the forcedLog method  
to force the logging of a message without identifying it as "FATAL".

I have such a use case in a project on which I'm working.


On Mar 1, 2005, at 5:18 PM, Harper, Allen ((AHARPER)) wrote:

> * Replies will be sent through Spamex to log4j-user@logging.apache.org
> * For additional info click -> http://www.spamex.com/i/?v=3D3863091
>
> Never mind, I may have found it.
> Al
>
>
> -----Original Message-----
> From: Lutz Michael [mailto:michael.h.lutz@siemens.com]
> Sent: Tuesday, March 01, 2005 4:13 PM
> To: 'Log4J Users List'
> Subject: RE: Extend or Wrap
>
>
> wrap.
>
> Ceki is very clear about this in his book.
>
>
> -----Original Message-----
> From: Harper, Allen (AHARPER) [mailto:AHARPER@arinc.com]
> Sent: Tuesday, March 01, 2005 5:04 PM
> To: Log4J Users List
> Subject: Extend or Wrap
>
>
> So, whats everone recommendations as to whether you should wrap, or
> extend Logger?
>
> Whats the pros and cons?
>
> Al Harper
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
> ----------------------------------------------------------------------- 
> -
> -------
> This message and any included attachments are from Siemens Medical
> Solutions USA, Inc. and are intended only for the addressee(s).
> The information contained herein may include trade secrets or  
> privileged
> or otherwise confidential information.  Unauthorized review,  
> forwarding,
> printing, copying, distributing, or using such information is strictly
> prohibited and may be unlawful.  If you received this message in error,
> or have reason to believe you are not authorized to receive it, please
> promptly delete this message and notify the sender by e-mail with a  
> copy
> to Central.SecurityOffice@shs.siemens.com
>
> Thank you
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: Extend or Wrap

Posted by Antoine TYNEVEZ <at...@patrimoine.com>.
Hi,

In my case, I must use my own levels (like "MINOR", "HARMLESS" and so on...)

So it were very useful to Extend the Logger class (and therefore implements
the LoggerFactory interface and extends the Level class).

Don't you think so ??

Antoine

-----Message d'origine-----
De : log4j_rocks@xemaps.com [mailto:log4j_rocks@xemaps.com]
Envoyé : mardi 19 avril 2005 02:43
A : log4j-user@logging.apache.org
Cc : Log4J Users List
Objet : Re: Extend or Wrap


There is a reason to Extend.  If you want to use the forcedLog method
to force the logging of a message without identifying it as "FATAL".

I have such a use case in a project on which I'm working.


On Mar 1, 2005, at 5:18 PM, Harper, Allen ((AHARPER)) wrote:

> * Replies will be sent through Spamex to log4j-user@logging.apache.org
> * For additional info click -> http://www.spamex.com/i/?v=3D3863091
>
> Never mind, I may have found it.
> Al
>
>
> -----Original Message-----
> From: Lutz Michael [mailto:michael.h.lutz@siemens.com]
> Sent: Tuesday, March 01, 2005 4:13 PM
> To: 'Log4J Users List'
> Subject: RE: Extend or Wrap
>
>
> wrap.
>
> Ceki is very clear about this in his book.
>
>
> -----Original Message-----
> From: Harper, Allen (AHARPER) [mailto:AHARPER@arinc.com]
> Sent: Tuesday, March 01, 2005 5:04 PM
> To: Log4J Users List
> Subject: Extend or Wrap
>
>
> So, whats everone recommendations as to whether you should wrap, or
> extend Logger?
>
> Whats the pros and cons?
>
> Al Harper
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
> -----------------------------------------------------------------------
> -
> -------
> This message and any included attachments are from Siemens Medical
> Solutions USA, Inc. and are intended only for the addressee(s).
> The information contained herein may include trade secrets or
> privileged
> or otherwise confidential information.  Unauthorized review,
> forwarding,
> printing, copying, distributing, or using such information is strictly
> prohibited and may be unlawful.  If you received this message in error,
> or have reason to believe you are not authorized to receive it, please
> promptly delete this message and notify the sender by e-mail with a
> copy
> to Central.SecurityOffice@shs.siemens.com
>
> Thank you
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 19/04/2005

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 19/04/2005


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org