This topic has not yet been rated - Rate this topic

MessageLoggingElement.MaxSizeOfMessageToLog Property

Gets or sets a value that specifies the maximum size, in bytes, of a message to log.

Namespace:  System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
[ConfigurationPropertyAttribute("maxSizeOfMessageToLog", DefaultValue = )]
[IntegerValidatorAttribute(MinValue = )]
public int MaxSizeOfMessageToLog { get; set; }

Property Value

Type: System.Int32
The maximum size, in bytes, of a message to log. Messages larger than the limit are not logged. This setting affects all trace levels. The default is Int32.MaxValue.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
DefaultValue
The default value for this property as said before is wrong. For more information see "http://msdn.microsoft.com/en-us/library/ms730064(v=vs.90).aspx"
Max size default
Documentation states the max size default is Int32.MaxValue.
Although practical experience shows it is less than that (which is quite reasonable).
Is not it 4096 bytes by default by chance?