Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

ILogExtensions.WarnFormatExt�Method�(ILog, String, Object, Object, Object)

Logs a formatted message string with the Warn level.

[Visual�Basic]
Overloads�Public�Shared�Sub�WarnFormatExt( _
���ByVal logger�As�ILog,�_
���ByVal format�As�String,�_
���ByVal arg0�As�Object,�_
���ByVal arg1�As�Object,�_
���ByVal arg2�As�Object�_
)
[C#]
public�static�void�WarnFormatExt(
���ILoglogger,
���stringformat,
���objectarg0,
���objectarg1,
���objectarg2
);

Parameters

logger
The logger on which the message is logged.
format
A String containing zero or more format items
arg0
An Object to format
arg1
An Object to format
arg2
An Object to format

Remarks

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

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

See Also

ILogExtensions Class | log4net.Util Namespace | ILogExtensions.WarnFormatExt Overload List | Warn | IsWarnEnabled