In a test I was working with, message logging only worked when I added the
new interceptors to the interceptor chain if I explicitly set the system
property to "true". Otherwise nothing was logged.

Colm.

On Fri, Jan 19, 2018 at 11:15 AM, Sergey Beryozkin <[email protected]>
wrote:

> It can only be used to disable the logging if it is explicitly set and is
> false:
>
> https://github.com/apache/cxf/blob/master/rt/features/loggin
> g/src/main/java/org/apache/cxf/ext/logging/AbstractLoggin
> gInterceptor.java#L49
>
> Sergey
> On 19/01/18 11:09, Colm O hEigeartaigh wrote:
>
>> I don't see "org.apache.cxf.logging.enabled" set anywhere in the systests
>> or is it enabled a different way?
>>
>> Colm.
>>
>> On Fri, Jan 19, 2018 at 11:00 AM, Sergey Beryozkin <[email protected]>
>> wrote:
>>
>> These new interceptors are used in systests, no problems.
>>> That property is used to switch the logging on/off dynamically...
>>>
>>> Cheers, Sergey
>>>
>>> On 19/01/18 10:56, Colm O hEigeartaigh wrote:
>>>
>>> Hi all,
>>>>
>>>> With the old logging interceptors in CXF core
>>>> (org.apache.cxf.interceptor)
>>>> you just had to attach them to the interceptor chain to see the
>>>> outbound/inbound requests. These interceptors are now deprecated.
>>>>
>>>> However in the new interceptors (org.apache.cxf.ext.logging), attaching
>>>> them to the interceptor chain is not enough to see the requests. You
>>>> also
>>>> need to set the system property org.apache.cxf.logging.enabled to
>>>> "true".
>>>>
>>>> Is this change in behaviour intended?
>>>>
>>>> Colm.
>>>>
>>>>
>>>>
>>>>
>>
>>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to