From b612d671bdf74f112fc02bd9f39fb0e4b1aec501 Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Mon, 26 Aug 2019 15:33:04 +0200 Subject: Log Incoming And Outgoing Messages with CXF Logging Interceptors - Add loggin dependency. - Enable Message Logging for Services and Clients. - Add message logging config + examples to application.yaml --- src/test/resources/config/application.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/test/resources') diff --git a/src/test/resources/config/application.yaml b/src/test/resources/config/application.yaml index 110d9d8..bd864a2 100644 --- a/src/test/resources/config/application.yaml +++ b/src/test/resources/config/application.yaml @@ -13,8 +13,18 @@ logging: SignatureVerifier: DEBUG LogResponseSink: INFO - at.gv.egiz.moazs.backend.SaveResponseToFileSink: TRACE - at.gv.egiz.moazs.SaveResponseToFileSinkTest: TRACE + # Incoming and outgoing messages are logged to INFO. + # Log all Incoming / Outgoing Messages. + #org.apache.cxf.services : INFO + + # Fine tune logging of messages per service / client: + # Format: .. + # Examples: + #org.apache.cxf.services.app2mzsPortType.REQ_IN : INFO + #org.apache.cxf.services.app2mzsPortType.RESP_OUT : INFO + #org.apache.cxf.services.App2ZusePort.REQ_OUT : INFO + #org.apache.cxf.services.App2ZusePort.RESP_IN: INFO + # More information: https://codenotfound.com/apache-cxf-logging-soap-request-response-fault-messages-example.html # Mandatory # Default type for java's ssl key/trust store. When in doubt, set to @@ -105,7 +115,7 @@ delivery-request-configuration-profiles: path: /msg-responses/ # Mandatory - # Log response to the at.gv.egiz.moazs.backend.LogResponseSink Logger. + # Log response to the at.gv.egiz.moazs.backend.LogResponseSink Logger, level INFO log-response: true # Mandatory -- cgit v1.2.3