log4net SDK Reference |

# OnlyOnceErrorHandler.Error Method (String, Exception)

Log an Error

[Visual Basic]
NotOverridable Overloads Public Sub Error( _
ByVal message As String, _
ByVal e As Exception _
) _
Implements IErrorHandler.Error
[C#]
public void Error(
string message,
Exception e
);

#### Parameters

message
  The error message.
e
  The exception.

#### Implements

IErrorHandler.Error

#### Remarks

Prints the message and the stack trace of the exception on the standard error output stream.

#### See Also

OnlyOnceErrorHandler Class | log4net.Util Namespace | OnlyOnceErrorHandler.Error Overload List