Mike,

The changes to allow property values to be specified in the text node of
the config element are only available in the SVN head of log4net. You
will need to pass the text in the value="" attribute. You will need to
use appropriate XML encoding for the < and > chars.

Cheers,
Nicko

> -----Original Message-----
> From: Mike Raath [mailto:[EMAIL PROTECTED] 
> Sent: 15 December 2005 09:12
> To: [email protected]
> Subject: Re: html output
> 
> Hi there. I've been trying to get this to work too, and 
> stumbled across Ron's suggestion
> 
> This may work for very simple cases:
> 
>  <layout type="log4net.Layout.PatternLayout">
>   <conversionPattern>
> 
>    <![[CDATA[
>     <table>
>      <tr>
>       <td><strong>%level</strong></td>
>       <td>%date</td>
>       <td>%message</td>
>      </tr>
> 
>     </table>
>    ]]>
>   </conversionPattern>
>  </layout>
> 
> However Log4Net complains about this method of specifying a 
> pattern - seems the pattern can't be defined in the inner 
> html; that it must be in the value attribute of the 
> <conversionPattern> tag. (Also I presume the <![[CDATA is a type). 
> 
> Is that correct? Or if you can declare the pattern using 
> CDATA please could someone advise?
> 
> Many thanks for any help you can give. I'm using Log4Net version 1.2.9
> 
> Mike
> 
> 

Reply via email to