Hello!<br><br>I'm writing a not-so-thin wrapper around Netty that provides mutlti-point communication using custom protocol.<br>I would like to achieve code at least a little as configurable as Netty's code is. For example, I'd like to use logging framework of my users's choice. From skimming Netty's code it should be enough to put<br>
<div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">private static final InternalLogger logger = InternalLoggerFactory.getInstance(MyClass.class);</span><br></div>in my classes.<br><br>Thus the I would achieve the goal with no effort, while my users would have to configure use of their framework of choice only once (once for Netty -- and for my code too). Cool -- but the InternalLogger is commented "<b>DO NOT</b> access this class outside of Netty."<br>
Why is that? How can I achieve configurable logging framework, preferably not duplicating the code?<br><br>thanks for help!<br>Piotr<br>