And we have two LoggingFeatures, I'm confused :-)
On 17/08/16 13:03, Sergey Beryozkin wrote:
Oh, I did not know we have two LoggingIn/OutInterceptor classes...
Why can;t have a single LoggingInInterceptor with as many constructors
as needed ?
Sergey
On 17/08/16 12:55, Christian Schneider wrote:
If you want to use the LoggingInInterceptor then you have to inject the
constructor with a LogEventSender. This allows
to use the interceptor with something different than slf4j.
Christian
On 17.08.2016 12:52, Vjacheslav V. Borisov wrote:
2016-08-17 11:19 GMT+04:00 Christian Schneider
<ch...@die-schneider.net>:
You should also take a look at the new Logging support in:
https://github.com/apache/cxf/tree/master/rt/features/logging
http://www.liquid-reality.de/display/liquid/2015/06/08/Enter
prise+ready+request+logging+with+CXF+3.1.0+and+elastic+search
The new logging feature should also make it easier to customize the
way to
output the message.
Christian, this is not related to my original question, but i noticed
that
in new logging feature I cannot configure to do only request logging?
E.g. in original logging feature I can
1) configure <cxf:logging/> in cxf:bus and see all (request and
response)
logs
2) can configure individual interceptors, e.g. to log only requst
<jaxrs:server
<jaxrs:inInterceptors>
<bean
class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
However, in new logging feature I cannot reference
org.apache.cxf.ext.logging.LoggingInInterceptor, becouse of
Failed to instantiate
[org.apache.cxf.ext.logging.LoggingInInterceptor]:
No default constructor found; nested exception is
java.lang.NoSuchMethodException:
org.apache.cxf.ext.logging.LoggingInInterceptor.<init>()
And also do not see how could I configure
org.apache.cxf.ext.logging.LoggingFeature
to do only request logging.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/