<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Ben,</div><div><br></div><div>yes, you understood it correctly.</div><div><br></div><div>The main problem is that you have to decide about the lowest level that you'll ever receive from the BridgeHandler.</div><div><br></div><div>Everything above that level will generate a logging event in j.u.logging. Only after that event has been generated (including fully generating its message), the actually used SLF4J implementation will have a chance to drop it.</div><div><br></div><div>This is very unfortunate and is the main reason why I consider j.u.logging the worst logging API out there.</div><div><br></div><div>Regards,</div><div>Joern.</div><div><br></div><br><div><div>On 12.04.2010, at 17:10, Ben Pickering wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi<div><br></div><div>In our application we use several libraries that log using j.u.logging, and we want to send them to the slf4j-wrapped logback setup we use everywhere else. &nbsp;For this we're using the&nbsp;SLF4JBridgeHandler class.</div> <div><br></div><div>On the Javadoc page for&nbsp;SLF4JBridgeHandler <a href="http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html">http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html</a>&nbsp;there's a warning that the class comes with a performance cost, and I'm keen to understand the nature of this.</div> <div><br></div><div>My assumption is that the issue relates to the case where the j.u.logging level is finer than the logback level. &nbsp;Processing done by j.u.logging is wasted because a logging call never results in a message being written; it never 'makes it through' logback because of its higher level. &nbsp;If the library is generating lots of FINEST calls, this could be a hit.</div> <div><br></div><div>However, if the j.u.logging level is set high, e.g. to INFO, then j.u.logging itself never makes the effort, and so there'll be no additional&nbsp;performance&nbsp;impact.</div><div><br></div><div>Is this a correct assessment? &nbsp;Or is there more that I should be aware of?</div> <div><div><br></div><div><br></div></div> _______________________________________________<br>slf4j-user mailing list<br><a href="mailto:slf4j-user@qos.ch">slf4j-user@qos.ch</a><br>http://qos.ch/mailman/listinfo/slf4j-user</blockquote></div><br></body></html>