<?xml version="1.0" encoding="utf-8" ?>
<configuration>
	<!-- Register a section handler for the log4net section -->
	<configSections>
		<section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
	</configSections>
	<!-- This section contains the log4net configuration settings -->	
	<log4net>
		<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
			<layout type="log4net.Layout.PatternLayout">
				<conversionPattern value="%date [%thread] %-5level %logger (%property{log4net:HostName}) [%ndc] - %message%newline" />
			</layout>
		</appender>
		<appender name="LogFileAppender" type="log4net.Appender.FileAppender">
			<file value="log-file.txt" />
			<sppendToFile value="true" />
			<layout type="log4net.Layout.PatternLayout">
				<header value="FILE HEADER&#13;&#10;" />
				<footer value="FILE FOOTER&#13;&#10;" />
				<conversionPattern value="%date [%thread] %-5level %logger (%property{log4net:HostName}) [%ndc] - %message%newline" />
			</layout>
		</appender>
		<root>
			<level value="DEBUG" />
			<appender-ref ref="ConsoleAppender" />
			<appender-ref ref="LogFileAppender" />
		</root>
	</log4net>
	<system.runtime.remoting>
		<application name="Log4netRemotingServer">
			<!-- We need to define the remoting channels on which we will publish
           the remote logging sink. -->
			<channels>
				<channel displayName="Server Channel" ref="tcp server" port="8085" />
			</channels>
		</application>
	</system.runtime.remoting>
</configuration>
