Created
August 13, 2015 13:13
-
-
Save jonashackt/850010a566963b07371a to your computer and use it in GitHub Desktop.
Configure Logging of SOAP-Messages with Apache CXF with Spring Profiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@Profile("logsoapmessages") | |
public class WebServiceMessageLoggerConfiguration { | |
@Autowired | |
private SpringBus springBus; | |
@Bean | |
public LoggingFeature loggingFeature() { | |
// Log SoapMessages to Logfile | |
LoggingFeature logFeature = new LoggingFeature(); | |
logFeature.setPrettyLogging(true); | |
logFeature.initialize(springBus); | |
springBus.getFeatures().add(logFeature); | |
return logFeature; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment