Hi,<br><br>I am new to logback, and I was asked to migrate our project from log4j to logback. I was wondering if there's any kind of support for object rendering such as in log4j.<br>This is what we're now doing with log4j.<br>
<br><br>public static LoggerRepository getLoggerRepository() {<br> if (loggerRepository == null) {<br> loggerRepository = org.apache.log4j.LogManager.getLoggerRepository();<br> }<br><br> return loggerRepository;<br>
}<br><br>public static RendererSupport getRendererSupport() {<br> LoggerRepository lr = getLoggerRepository();<br> if ((lr != null) && (lr instanceof RendererSupport))<br> rendererSupport = (RendererSupport) lr;<br>
<br> return rendererSupport;<br>}<br><br>public static ObjectRender getRendererObject(Class<?> clazz) {<br> ObjectRender renderer = getRendererSupport().getRendererMap().get(clazz);<br> return renderer;<br>
}<br><br><br>Any thoughts?<br><br><br>Thank you,<br><br><br>Manuel<br>