Hello All,

 

In the Log4Net manual, more specifically the FileAppender example, an encoding value is used to specify Unicode.

 

I assume utf-8 and unicodeFFFE are allowed based on the example. Are there any other allowed values for the encoding tag?

 

See the example code snippet from the manual below:

 

<appender name="FileAppender" type="log4net.Appender.FileAppender">
     <file value="${TMP}\\log-file.txt" />
     <appendToFile value="true" />
     <encoding value="unicodeFFFE" />
     <layout type="log4net.Layout.PatternLayout">
           <conversionPattern value="%date [%thread] %-5level %logger [%ndc] - %message%newline" />
     </layout>
</appender>

 

Has anyone successfully implemented Log4Net in Chinese, or perhaps one of the other non-Western European languages?

 

Cheers,

Anthony

 

Anthony Taylor

Staff Engineer

Aspen Technology, Inc.

1293 Eldridge Parkway

Houston, TX. 77077

281-504-3283

 

Reply via email to