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)

public:
[ConfigurationPropertyAttribute("maxSizeOfMessageToLog", DefaultValue = 262144)]
[IntegerValidatorAttribute(MinValue = -1)]
property int MaxSizeOfMessageToLog {
	int get();
	void set(int value);
}

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
Available since 3.0
Return to top
Show: