MessageLoggingElement.MaxSizeOfMessageToLog Property
Gets or sets a value that specifies the maximum size, in bytes, of a message to log.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
[ConfigurationPropertyAttribute("maxSizeOfMessageToLog", DefaultValue = )] [IntegerValidatorAttribute(MinValue = )] public int MaxSizeOfMessageToLog { get; set; }
Property Value
Type: System.Int32The 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.
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.
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"
- 2/21/2012
- Alejandro Adrián Costantino
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?
Although practical experience shows it is less than that (which is quite reasonable).
Is not it 4096 bytes by default by chance?
- 2/16/2011
- Stan Dvoychenko