Chandrajeet Padhy wrote:
Hi All,
I am having a trouble with the IoHandlerAdapter. I can see messages
transmitting and only messageSent gets invoked. Even if there is a message
reply it doesn't come into messageReceived method.
Thus I reused the logging filter to handle message receipts as a work
around. as below
serviceConfig.getFilterChain().addLast("logger", new
RFMessageFilter(eventHandlingStrategy));
But, I want to switch off the log messages those gets printed at "INFO"
level from org.apache.mina.util.SessionLog.
How can I turn off the log messages or change the log level to not to print
at all.
Mina's logger relies on slf4j which is a facade. Your application's
logger has to be configured in order to change the logs you'll get. So
if you are using Log4j, just modify your log4j configuration.
Here is a page which explains how to do that :
http://mina.apache.org/logging-configuration.html
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org