Skip to content

Instantly share code, notes, and snippets.

@syron
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syron/cdeace5967c57923b290 to your computer and use it in GitHub Desktop.
Save syron/cdeace5967c57923b290 to your computer and use it in GitHub Desktop.
IM.Log.Agents.Log4Net.Demo.exe.config with servicemodel section
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,Log4net"/>
</configSections>
<appSettings>
<add key="IM.Log4Net.IsOneWay" value="false" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<log4net>
<appender name="FileAppender" type="log4net.Appender.FileAppender">
<param name="File" value="tutorial.log"/>
<param name="AppendToFile" value="true"/>
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="%d %-2p - %m%n"/>
</layout>
</appender>
<appender name="IMAppender" type="IM.Log4NetAppender,IMLogAppender">
<!-- Custom Parameters -->
<OriginalMessageType value="Log4Net Message" />
<LogAgentID value="2"/>
<EndPointName value="Log4Net Application"/>
<EndPointUri value="C:\temp\ConsoleApplication"/>
<LogText value =""/>
<ProcessingUser value="Administrator"/>
<ModuleType value="Application"/>
<ProcessName value="IS.Demo.Log4Net.Application.Console.exe"/>
<ProcessingMachineName value="DEV"/>
<ProcessingModuleType value="Console Application"/>
<ProcessingModuleName value="CMD"/>
<LogApiServiceURI value="http://localhost/IM/LogAPI/LogApiService.svc"/>
<AppInterchangeIDStr value="{99106FF5-C7BB-4244-9EB7-F99040190F32}"/>
<LocInterChangeIDStr value="{E4CDDF18-9925-4A79-8E9F-71BC0D4C5172}"/>
<ServiceInstanceActivityIDStr value="{E4CDDF18-9925-4A79-8E9F-71BC0D4C5173}"/>
</appender>
<root>
<level value="ALL"/>
<appender-ref ref="FileAppender"/>
<appender-ref ref="IMAppender"/>
</root>
</log4net>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_ILogApiService" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/IM/LogAPI/LogApiService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ILogApiService"
contract="IM.Libraries.Contracts.ServiceContracts.ILogApiService" name="BasicHttpBinding_ILogApiService" />
</client>
</system.serviceModel>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment