log4net SDK Reference

SimpleLayout.Format Method 

Produces a simple formatted output.

[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

Formats the event as the level of the even, followed by " - " and then the log message itself. The output is terminated by a newline.

See Also

SimpleLayout Class | log4net.Layout Namespace