log4net SDK Reference

IObjectRenderer.RenderObject Method 

Render the object obj to a string

[Visual Basic]
Sub RenderObject( _
   ByVal rendererMap As RendererMap, _
   ByVal obj As Object, _
   ByVal writer As TextWriter _
)
[C#]
void RenderObject(
   RendererMap rendererMap,
   object obj,
   TextWriter writer
);

Parameters

rendererMap
The map used to lookup renderers
obj
The object to render
writer
The writer to render to

Remarks

Render the object obj to a string.

The rendererMap parameter is provided to lookup and render other objects. This is very useful where obj contains nested objects of unknown type. The FindAndRender method can be used to render these objects.

See Also

IObjectRenderer Interface | log4net.ObjectRenderer Namespace