Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

LogImpl.ErrorFormat�Method�(String, Object[])

Logs a formatted message string with the ERROR level.

[Visual�Basic]
Overridable�Overloads�Public�Sub�ErrorFormat( _
���ByVal format�As�String,�_
���ParamArray args�As�Object()�_
)�_
����Implements�ILog.ErrorFormat
[C#]
public�virtual�void�ErrorFormat(
���stringformat,
���params�object[]args
);

Parameters

format
A String containing zero or more format items
args
An Object array containing zero or more objects to format

Implements

ILog.ErrorFormat

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 ErrorFormat method.

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

See Also

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