log4net SDK Reference

PatternConverter.WriteObject Method 

Write an object to a TextWriter

[Visual Basic]
Protected Shared Sub WriteObject( _
   ByVal writer As TextWriter, _
   ByVal repository As ILoggerRepository, _
   ByVal value As Object _
)
[C#]
protected static void WriteObject(
   TextWriter writer,
   ILoggerRepository repository,
   object value
);

Parameters

writer
the writer to write to
repository
a ILoggerRepository to use for object conversion
value
the value to write to the writer

Remarks

Writes the Object to a writer. If the ILoggerRepository specified is not null then it is used to render the object to text, otherwise the object's ToString method is called.

See Also

PatternConverter Class | log4net.Util Namespace