log4net SDK Documentation - Microsoft .NET Framework 4.0

ExceptionLayout.Format Method (TextWriter, LoggingEvent)

Gets the exception text from the logging event

[Visual Basic]
Overrides Overloads 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 | ExceptionLayout.Format Overload List