log4net SDK Documentation - Microsoft .NET Framework 4.0

SimpleLayout.Format Method (TextWriter, LoggingEvent)

Produces a simple formatted output.

[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

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 | SimpleLayout.Format Overload List