using InternalLogger in Netty's wrapper
Piotr Findeisen
piotr.findeisen at gmail.com
Mon Jun 22 17:57:45 EDT 2009
Hello!
I'm writing a not-so-thin wrapper around Netty that provides mutlti-point
communication using custom protocol.
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
private static final InternalLogger logger =
InternalLoggerFactory.getInstance(MyClass.class);
in my classes.
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 "*DO
NOT*access this class outside of Netty."
Why is that? How can I achieve configurable logging framework, preferably
not duplicating the code?
thanks for help!
Piotr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20090622/16e679e8/attachment.html
More information about the netty-users
mailing list