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 Raif Naffah <Ra...@forge.com.au> on 2002/04/19 07:48:08 UTC

configuring a user-defined Logger with an xml file

hi there,

i'm using log4j 1.2b4 and 1.2rc1 on a Win2K platform and trying to
configure a logging environment using a subclass of
org.apache.log4j.xml.DOMConfigurator.

Logger replaces Category, yet in the DTD, the attribute list of Logger does
not mandate the designation of a "class" as Category used to (and still
does).

is this an oversight or there is now a way of specifying user-defined
Loggers in an xml config file?


TIA + cheers;
rsn
-----------------------------------------------------------------------
Raif S. Naffah
Forge Research Pty. Limited < http://www.forge.com.au >
-----------------------------------------------------------------------
The message contains privileged and confidential information intended
only for the use of the addressee named above.  If you are not the
intended recipient of this message you must not disseminate, copy or
take any action in reliance on it.  If you have received this message
in error please notify the sender 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 another (including
a Body Corporate).
-----------------------------------------------------------------------


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: configuring a user-defined Logger with an xml file

Posted by Ceki Gülcü <ce...@qos.ch>.
Hi raif,

It is intentional. Since subclassing is the source of considerable problems,
it's used is reserved for main applications such as EJB containers or
Servlet containers. One can specify a subclass by setting a new
logger repository. Setting subclasses per logger is now strongly discouraged.

Regards, Ceki

At 15:48 19.04.2002 +1000, you wrote:
>hi there,
>
>i'm using log4j 1.2b4 and 1.2rc1 on a Win2K platform and trying to
>configure a logging environment using a subclass of
>org.apache.log4j.xml.DOMConfigurator.
>
>Logger replaces Category, yet in the DTD, the attribute list of Logger does
>not mandate the designation of a "class" as Category used to (and still
>does).
>
>is this an oversight or there is now a way of specifying user-defined
>Loggers in an xml config file?
>
>
>TIA + cheers;
>rsn
>-----------------------------------------------------------------------
>Raif S. Naffah
>Forge Research Pty. Limited < http://www.forge.com.au >
>-----------------------------------------------------------------------

--
Ceki


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>