At 17:20 16.07.2001 -0700, you wrote:
>I want to set the priority in the Appender not in the category, so does this
>mean that my using:
>
><param name="Threshold" value="crit" class="com.myclass.classname"/>
>
>wont work?
>
>I also tried:
>
><param name="Threshold" value="crit#com.myclass.classname"/>

As far as I can tell, the following works.

<param name="Threshold" value="crit#com.myclass.classname"/>

Set the log4j.debug system property to see internal log4j message.
The syntax is:

java -Dlog4j.debug your.test.application

This should show you that the string after the # is interpreted as a class name. 

Regards, Ceki



>----- Original Message -----
>From: "Jay Riddell" <[EMAIL PROTECTED]>
>To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Monday, July 16, 2001 5:08 PM
>Subject: Re: how to specify non-standard Priority level in xml config file?
>
>
>>     Try the following:
>>
>>    <category name="com" class="com.myclass.className">
>>         <priority value="myPriority#com.classNameOfMyPriority" />
>>     </category>
>>
>>
>> ----- Original Message -----
>> From: "Mike Papper" <[EMAIL PROTECTED]>
>> To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
>> Sent: Monday, July 16, 2001 4:49 PM
>> Subject: Re: how to specify non-standard Priority level in xml config
>file?
>>
>>
>> > This did not work. My Priority class is extended from log4j's Priority
>> > class.
>> > I saw no error in log4j either.
>> >
>> > Heres what I used in my XML:
>> >
>> > <param name="Threshold" value="crit" class="com.myclass.classname"/>
>> >
>> >
>> > ----- Original Message -----
>> > From: "Ceki Gülcü" <[EMAIL PROTECTED]>
>> > To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
>> > Sent: Thursday, July 12, 2001 11:34 PM
>> > Subject: Re: how to specify non-standard Priority level in xml config
>file?
>> >
>> >
>> > At 19:27 12.07.2001 -0700, you wrote:
>> > >I have:
>> > >
>> > ><param name="Threshold" value="error"/>
>> > >
>> > >and I really want:
>> > >
>> > ><param name="Threshold" value="crit"/>
>> > >
>> > >where crit represents a class named CritPriority, a subclass of
>Priority
>> > >I've defined
>> > >
>> > >Is there a way to do this with the xml configurator?
>> > >
>> > >Can I put an integer value in here like so:
>> > >
>> > ><param name="Threshold" value="42000"/>
>> > >
>> > >?
>> > >
>> > >Mike Papper
>> >
>> > Mike,
>> >
>> > Try
>> >
>> > <param name="Threshold" value="crit" class="your.priority.subclass"/>
>> >
>> > The log4j.dtd is the a place to go to clarify the capabilities of the
>XML
>> > configuration file.
>> >
>> > By the way, whenever the "class" attribute is not available usually the
>> > following alternate syntax is available:
>> >
>> > value="crit#your.priority.subclass"   (in XML type config files)
>> >
>> > value=crit#your.priority.subclass     (in property type config files)
>> >
>> > Hope this helps, Ceki
>> >
>> > --
>> > Ceki Gülcü - http://qos.ch
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

--
Ceki Gülcü - http://qos.ch


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

Reply via email to