Created
March 6, 2015 03:10
-
-
Save trentmswanson/410859e6961ed1c81240 to your computer and use it in GitHub Desktop.
log4net transform to replace file appender with trace appender
This file contains hidden or 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"?> | |
<!-- For more information on using Web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=301874 --> | |
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | |
<system.web> | |
<compilation xdt:Transform="RemoveAttributes(debug)" /> | |
</system.web> | |
<log4net> | |
<appender name="DataAccessLogFile" type="log4net.Appender.TraceAppender" xdt:Transform="SetAttributes(type)" xdt:Locator="Match(name)" > | |
<file xdt:Transform="Remove" /> | |
<appendToFile xdt:Transform="Remove" /> | |
<maximumFileSize xdt:Transform="Remove" /> | |
<maxSizeRollBackups xdt:Transform="Remove" /> | |
</appender> | |
</log4net> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment