I'm doing some research into using log4net, and I found the IObjectRenderer interface interesting. It would allow us to control how types are logged and provide a different, possibly more user-friendly ToString()
implementation. I just started looking at log4net though, and can't seem to find a logical way to programmatically set up the association between types and renderers.
I found that this can be set up in the XML configuration file by reading the manual, but it didn't give me any hints about programmatically adding these. It seems to me that you'd rather have a programmatic object renderer in some cases, so I'm curious how to do this.