Last active
June 30, 2016 08:47
-
-
Save TimMurphy/a5a38e08a9fc537ca1d7 to your computer and use it in GitHub Desktop.
.NET solution
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
<configSections> | |
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" /> | |
</configSections> | |
<nlog throwExceptions="false" xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<time type="AccurateUTC" /> | |
<targets> | |
<target xsi:type="Chainsaw" name="Chainsaw" address="udp://127.0.0.1:7071" /> | |
<target xsi:type="Trace" name="Trace" layout="NLog | ${level:padding=5} | ${logger} | ${message}" /> | |
</targets> | |
<rules> | |
<logger name="*" minlevel="Trace" writeTo="Chainsaw" /> | |
<logger name="*" minlevel="Trace" writeTo="Trace" /> | |
</rules> | |
</nlog> |
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"?> | |
<Weavers> | |
<Anotar.LibLog /> | |
<EmptyStringGuard IncludeDebugAssert="false" /> | |
<NullGuard IncludeDebugAssert="false" /> | |
</Weavers> |
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
// All projects | |
Install-Package -Id Anotar.LibLog.Fody | |
Install-Package -Id EmptyStringGuard.Fody | |
Install-Package -Id NullGuard.Fody | |
// Test projects | |
Install-Package -Id SpecFlow.xunit | |
Install-Package -Id FluentAssertions |
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
<system.webServer> | |
<rewrite> | |
<rules> | |
<clear /> | |
<rule name="Redirect to https" stopProcessing="true"> | |
<match url="(.*)" /> | |
<conditions> | |
<add input="{HTTPS}" pattern="off" ignoreCase="true" /> | |
</conditions> | |
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" /> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment