Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

LogImpl.WarnFormat�Method�(String, Object, Object, Object)

Logs a formatted message string with the WARN level.

[Visual�Basic]
Overridable�Overloads�Public�Sub�WarnFormat( _
���ByVal format�As�String,�_
���ByVal arg0�As�Object,�_
���ByVal arg1�As�Object,�_
���ByVal arg2�As�Object�_
)�_
����Implements�ILog.WarnFormat
[C#]
public�virtual�void�WarnFormat(
���stringformat,
���objectarg0,
���objectarg1,
���objectarg2
);

Parameters

format
A String containing zero or more format items
arg0
An Object to format
arg1
An Object to format
arg2
An Object to format

Implements

ILog.WarnFormat

Remarks

The message is formatted using the Format method. See String.Format for details of the syntax of the format string and the behavior of the formatting.

The string is formatted using the InvariantCulture format provider. To specify a localized provider use the WarnFormat method.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the Warn methods instead.

See Also

LogImpl Class | log4net.Core Namespace | LogImpl.WarnFormat Overload List