Created
June 2, 2015 11:53
-
-
Save divsoft/169ebb487420ff1290ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<configSections> | |
<sectionGroup name="common"> | |
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" /> | |
</sectionGroup> | |
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> | |
</configSections> | |
<appSettings> | |
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> | |
</appSettings> | |
<system.web> | |
<compilation debug="true" targetFramework="4.5.1" /> | |
<httpRuntime targetFramework="4.5.1" /> | |
</system.web> | |
<system.serviceModel> | |
<behaviors> | |
<serviceBehaviors> | |
<behavior> | |
<!-- To avoid disclosing metadata information, set the values below to false before deployment --> | |
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /> | |
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --> | |
<serviceDebug includeExceptionDetailInFaults="false" /> | |
</behavior> | |
</serviceBehaviors> | |
</behaviors> | |
<protocolMapping> | |
<add binding="basicHttpsBinding" scheme="https" /> | |
</protocolMapping> | |
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> | |
</system.serviceModel> | |
<system.webServer> | |
<modules runAllManagedModulesForAllRequests="true" /> | |
<!-- | |
To browse web app root directory during debugging, set the value below to true. | |
Set to false before deployment to avoid disclosing web app folder information. | |
--> | |
<directoryBrowse enabled="true" /> | |
</system.webServer> | |
<runtime> | |
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |
<dependentAssembly> | |
<assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" /> | |
<bindingRedirect oldVersion="0.0.0.0-1.2.11.0" newVersion="1.2.11.0" /> | |
</dependentAssembly> | |
</assemblyBinding> | |
</runtime> | |
<common> | |
<logging> | |
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net"> | |
<arg key="configType" value="INLINE" /> | |
</factoryAdapter> | |
</logging> | |
</common> | |
<log4net> | |
<root> | |
<level value="ALL" /> | |
<appender-ref ref="FileAppender" /> | |
</root> | |
<appender name="FileAppender" type="log4net.Appender.FileAppender" > | |
<param name="File" value="log.txt" /> | |
<layout type="log4net.Layout.PatternLayout"> | |
<conversionPattern value="%date [%thread] %level %logger - %message%newline" /> | |
</layout> | |
</appender> | |
</log4net> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment