log4net SDK Reference

ExceptionLayout.Format Method 

Gets the exception text from the logging event

[Visual Basic]
Overrides Public Sub Format( _
   ByVal writer As TextWriter, _
   ByVal loggingEvent As LoggingEvent _
) _
    Implements ILayout.Format
[C#]
public override void Format(
   TextWriter writer,
   LoggingEvent loggingEvent
);

Parameters

writer
The TextWriter to write the formatted event to
loggingEvent
the event being logged

Implements

ILayout.Format

Remarks

Write the exception string to the TextWriter. The exception string is retrieved from GetExceptionString.

See Also

ExceptionLayout Class | log4net.Layout Namespace