cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-7000) Allow logging to be enabled on-the-fly
Date Wed, 17 Aug 2016 16:03:20 GMT


Sergey Beryozkin commented on CXF-7000:

Yes, the property approach was proposed (such property already exists - but it is only supported
to bootstrap LoggingFeature for now) and in the end we agreed with Ingo delaying adding a
dedicated utility support like bus.setLiveLogging().
But the observation about the code having to be recompiled/changed whenever the dynamic requirements
change (even if if simply do bus.setProperty("...")) is valid.  

Ingo how do you plan to use such a would be 'bus.setLiveLogging(true/false)' method ?

I can imagine a code (in the client or in some custom interceptor sitting in front of LoggingIn/OutInterceptor)
that reacts to external notifications (ex, from the management console) which will either
turn the live logging either on or off. Example, the console receives a red flag event that
something is not right and Admin presses a Button like "Live Log ON" and immediately the logging
goes off (per-whatever logging configuration) - and once the issue is sorted - Admin presses
"Live Log OFF". This would work for me as far as having a generic code immune to the log requirement
changes, but I wonder how realistic such a scenario is. 

> Allow logging to be enabled on-the-fly
> --------------------------------------
>                 Key: CXF-7000
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core, logging
>    Affects Versions: 3.1.7
>            Reporter: Ingo Weiss
> Allow the logging feature to be enabled on-the-fly without restarting the bus.

This message was sent by Atlassian JIRA

View raw message