Hi community,

Sorry for flooding idea, but I got some free time today. :)

Currently, we log messages from IoHandler like the following:

SessionLog.info(session, "message");

What about integrating this feature into IoSession like the following?

// getLogger() returns SLF4J Logger.  Category will be the FQCN of the
IoHandler.
session.getLogger().info(session, "message");
// Category can be overriden if requested.
session.getLogger(Main.class).info(session, "message 2");

There won't be any performance difference IMO.

I'm not sure it's a good idea to integrate with SLF4J tightly, so
please let me know what you think about it.

Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to