> The documentation on the website for the renderer node > doesn't mention if it was possible to specify a renderer for > an interface. In RendererMap.cs there is a > SearchTypeAndInterfaces method that looks like it searches > through an object's (type's ???) interfaces if the type of > the object doesn't have a renderer. Is this the case? If so, > is it possible to override how things are rendered in > DefaultRenderer.cs? > Can I do something like this: > > <renderer > renderingClass="MyClass.CollectionRenderer" > renderedClass="System.Collections.ICollection" />
Yes that should work. Nicko > --- Nicko Cadell <[EMAIL PROTECTED]> wrote: > > > > > > > > I doubt many users need to customize how string messages are > > > rendered. > > > > It is not a feature that is often requested. But it exists and we > > support it. > > > > Adding a custom renderer to the log4net configuration has another > > disadvantage in that it leads to a tighter coupling between the > > application and the logging library. In general the > coupling should be > > as loose as possible, it should work with many different > > configurations. > >
