matthewadams
Dec 16th, 2010, 04:27 PM
If I'm using a <logging-channel-adapter>, how do I specify the logger?
I've only been able to get the logging channel adapter to show messages logged to it when the logger named "org.springframework.integration.handler" in my log4j.xml/log4j.properties has a level set to the "level" attribute of the <logging-channel-adapter> (or below). Problem is, I see more logging than just my application messages -- I see log messages from the Spring Integration framework classes as well.
What plans are there to allow the user to provide a logger name so that I can log Spring Integration handler messages to one logger, and actual messages to another logger, like the following?
<logging-channel-adapter id="logger" level="DEBUG" logger="org.example.foo.bar"/>This would allow me to set the threshold of the logger "org.example.foo.bar" to a level that differs from that of the logger named "org.springframework.integration.handler".
-matthew
I've only been able to get the logging channel adapter to show messages logged to it when the logger named "org.springframework.integration.handler" in my log4j.xml/log4j.properties has a level set to the "level" attribute of the <logging-channel-adapter> (or below). Problem is, I see more logging than just my application messages -- I see log messages from the Spring Integration framework classes as well.
What plans are there to allow the user to provide a logger name so that I can log Spring Integration handler messages to one logger, and actual messages to another logger, like the following?
<logging-channel-adapter id="logger" level="DEBUG" logger="org.example.foo.bar"/>This would allow me to set the threshold of the logger "org.example.foo.bar" to a level that differs from that of the logger named "org.springframework.integration.handler".
-matthew