LogImpl.ErrorFormat Method (String, Object)
LogImplErrorFormat Method (String, Object)Apache log4net™ SDK Documentation
Logs a formatted message string with the ERROR level.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public virtual void ErrorFormat(
	string format,
	Object arg0
)

Parameters

format
Type: SystemString
A String containing zero or more format items
arg0
Type: SystemObject
An Object to format

Implements

ILogErrorFormat(String, Object)
Remarks

The message is formatted using the [M:String.Format(IFormatProvider, string, object[])] 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 [M:ErrorFormat(IFormatProvider,string,object[])] method.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the [M:Error(object)] methods instead.

See Also

Reference