Skip to content

Logging Interceptor is deprecated - what to use? #370

Answered by shumonsharif
lferna asked this question in Q&A
Discussion options

You must be logged in to vote

Luis, I looked into this, but could not find any issue in the extension. Just for reference, you can use something similar to the below (combined with the application.properties updates mentioned earlier) to leverage cxf-rt-features-logging in native mode.

import io.quarkus.arc.Unremovable;
import io.quarkus.runtime.annotations.RegisterForReflection;
import org.apache.cxf.ext.logging.LoggingFeature;

import javax.enterprise.inject.Produces;

@RegisterForReflection(targets = {LoggingFeature.class})
public class Producers {

    @Produces
    @Unremovable
    LoggingFeature loggingFeature() {
        LoggingFeature loggingFeature = new LoggingFeature();
        loggingFeature.setPrettyLogging(

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lferna
Comment options

You must be logged in to vote
1 reply
@shumonsharif
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants