AbsoluteTimeDateFormatterFormatDate Method Apache log4net™ SDK Documentation
Renders the date into a string. Format is "HH:mm:ss,fff".

Namespace: log4net.DateFormatter
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public virtual void FormatDate(
	DateTime dateToFormat,
	TextWriter writer
)

Parameters

dateToFormat
Type: SystemDateTime
The date to render into a string.
writer
Type: System.IOTextWriter
The writer to write to.

Implements

IDateFormatterFormatDate(DateTime, TextWriter)
Remarks

Uses the FormatDateWithoutMillis(DateTime, StringBuilder) method to generate the time string up to the seconds and then appends the current milliseconds. The results from FormatDateWithoutMillis(DateTime, StringBuilder) are cached and FormatDateWithoutMillis(DateTime, StringBuilder) is called at most once per second.

Sub classes should override FormatDateWithoutMillis(DateTime, StringBuilder) rather than FormatDate(DateTime, TextWriter).

See Also

Reference