<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Gaston,</div><div><br></div><div>I don't think there is such support. But you could add support in your own custom format or custom appender. I guess. <br><br>David</div><div><br>On 2 Sep 2013, at 15:47, gaston sponer <<a href="mailto:gaston.sponer@hotmail.com">gaston.sponer@hotmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"><pre style="white-space: pre-wrap;">Hi, Any answer for this?</pre><pre style="white-space: pre-wrap;">Hi,
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.
This is what we're now doing with log4j.
public static LoggerRepository getLoggerRepository() {
if (loggerRepository == null) {
loggerRepository =
org.apache.log4j.LogManager.getLoggerRepository();
}
return loggerRepository;
}
public static RendererSupport getRendererSupport() {
LoggerRepository lr = getLoggerRepository();
if ((lr != null) && (lr instanceof RendererSupport))
rendererSupport = (RendererSupport) lr;
return rendererSupport;
}
public static ObjectRender getRendererObject(Class<?> clazz) {
ObjectRender renderer =
getRendererSupport().getRendererMap().get(clazz);
return renderer;
}
<br></pre> </div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Logback-user mailing list</span><br><span><a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a></span><br><span><a href="http://mailman.qos.ch/mailman/listinfo/logback-user">http://mailman.qos.ch/mailman/listinfo/logback-user</a></span></div></blockquote></body></html>