-
Notifications
You must be signed in to change notification settings - Fork 67
Home
##Configuring Log4Net
Log4Net must be setup to write XML content in XmlLayoutSchemaLog4j layout to log files. This configuration normally should be performed just once and it is quite simple. Just a few lines need to be added to your application config file (or log4net config file) to configure it to use this format. We suggest you to create separate appender named FileXmlAppender to create log files in XmlLayoutSchemaLog4j layout. Your log4net section should look like this:
<log4net>
<appender name="FileAppenderXml" type="log4net.Appender.FileAppender">
<file type="log4net.Util.PatternString" value="sample-log.xml"/>
<appendToFile value="true"/>
<layout type="log4net.Layout.XmlLayoutSchemaLog4j">
<locationInfo value="true"/>
</layout>
<param name="Encoding" value="utf-8" />
</appender>
<!-- other appenders defined here -->
<root>
<level value="ALL" />
<appender-ref ref="FileAppenderXml" />
<!-- other appenders enabled here -->
</root>
</log4net>
##Overriding GUI language
By default, YALV GUI languade follows your Windows culture automatically. If no appropriate localization was found, then default "en" culture will be used. If you want to override culture used by YALV, just specify desired culture code in "Culture" setting in YALV.exe.config file ("ja" for example):
<appSettings>
<add key="Culture" value="ja" />
</appSettings>
If you want to enable default behavior, then just clear "Culture" setting and leave it empty:
<appSettings>
<add key="Culture" value="" />
</appSettings>