You don't specify the factory, but the class itself.

  <!-- Note the class attributes! -->
  <category name="category.to.log"
            class="MyCategory">
    <priority value ="debug"
              class="PriorityClass" />
  </category>


-----Original Message-----
From: Yuriy Larin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 7:49 AM
To: [EMAIL PROTECTED]
Subject: Is it possible to specify categoryFactory in the XML configuration
file ?
Importance: High


Hi.

Is it possible to specify categoryFactory parameter in the XML configuration
file ?

How to make it, I don't see this ability in the log4j.dtd (1.1.3 version -
latest) although it's possible in the Property file as in the
...\log4j\examples\mycat.good??

Where is my fault ? I try ...\log4j\examples\MyCategory.java   and
MyCategoryFactory.java with XML configuration file.

I get error message:
log4j:ERROR Did you forget to set the factory in the config file?

Thanks for any help.

- Yuriy.

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

Reply via email to