Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

PatternLayout.Format�Method�(TextWriter, LoggingEvent)

Produces a formatted string as specified by the conversion pattern.

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

Parameters

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

Implements

ILayout.Format

Remarks

Parse the LoggingEvent using the patter format specified in the ConversionPattern property.

See Also

PatternLayout Class | log4net.Layout Namespace | PatternLayout.Format Overload List