Created
October 24, 2018 14:32
-
-
Save stofte/7c41cbba55dbcd5ae0811cc3f5aade44 to your computer and use it in GitHub Desktop.
WCF message logging
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.diagnostics> | |
<sources> | |
<source name="System.ServiceModel.MessageLogging"> | |
<listeners> | |
<add name="messages" | |
type="System.Diagnostics.XmlWriterTraceListener" | |
initializeData="c:\logs\messages.svclog" /> | |
</listeners> | |
</source> | |
</sources> | |
</system.diagnostics> | |
<system.serviceModel> | |
<diagnostics> | |
<messageLogging | |
logEntireMessage="true" | |
logMalformedMessages="false" | |
logMessagesAtServiceLevel="true" | |
logMessagesAtTransportLevel="false" | |
maxMessagesToLog="3000" | |
maxSizeOfMessageToLog="200000"/> | |
</diagnostics> | |
</system.serviceModel> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment