On Wed, 2001-11-28 at 11:05, [EMAIL PROTECTED] wrote:
> 
> 
> Could you specify the exact example filename, I have looked around
> extensively in the source but don't see any example of setting a default
> CategoryFactory in an XML config file. (The reason I posted this is
> because I was sure I HAD seen this done in an example somewhere
> but couldn't locate it in the 1.1.3 source on onlince docs.)
> 
> Thanks.
> -Scott

Just looked at log4j.dtd in 1.1.3, finding no place to put a
CategoryFactory in.
Also if your AppServerCategory is similar with the examples in 1.1.3,
you may not need to specify the AppServerCategory name, but the class
name of AppServerCategory instead. I have a similar AppServerCategory
with AppServerCategoryFactory embedded inside. I use the following
configuration.

<category name="application"
        class="com.mycom.log.AppServerCategory" additive="false">
        <priority value="info" />
        <appender-ref ref="XXXAppender" />
        <appender-ref ref="YYYAppender" />
</category>

It works.

Jin

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

Reply via email to