Today's article continues the series on tracing and message logging with a look at the different message logging configuration options.
The options I showed yesterday for message logging included four switches to control which types of messages get logged and two quotas to control how much data is logged.
The four switches are:
All of the switches are set to off by default.
The two quotas are:
The default for maxMessagesToLog is 10000 and the default for maxSizeOfMessageToLog is 256 kilobytes. I don't think the documentation for WCF mentions this anywhere but setting either of these values to -1 should disable the quota.
I've left out one particular option for message logging, which is the filtering system. I'll cover that after compiling some of the behind the scenes details of the options in this article.