log4net SDK Reference

LayoutSkeleton.Format Method 

Implement this method to create your own layout format.

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

Parameters

writer
The TextWriter to write the formatted event to
loggingEvent
The event to format

Implements

ILayout.Format

Remarks

This method is called by an appender to format the loggingEvent as text.

See Also

LayoutSkeleton Class | log4net.Layout Namespace