Matt, I posted the same question on May 16th. So far there has been no reply but this worked for me:
((Hierarchy)log.getLoggerRepository()).addRenderer(MyClass.class, new MyRenderer()); Surely there must be a better way - maybe in a properties file. ----- Original Message ----- From: "Matt Cox" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 12:05 PM Subject: ObjectRender > Hi, > > I'm using 1.2.1 and I would like to implement my own custom ObjectRenderers. > It looks pretty straight forward in terms of implementing the ObjectRenderer > Class. But after that I need some direction. I'm assuming that I need to > add my implementation to the RendererMap for a given class type, but how do > I get the RendererMap? > > In the javadoc there is a method on Logger to get the hierarchy from which I > can get the RendererMap but this has been deprecated, with a reference to > use LogManager.getLoggerRepository(). But there is nothing on the > repository to allow me to get the RendererMap. > > What am I missing? > > Thanks, > Matt > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>