1
2
3
4
5
6
7 package org.mule.module.cxf.feature;
8
9 import java.io.PrintWriter;
10
11 import org.apache.cxf.interceptor.LoggingInInterceptor;
12
13
14
15
16
17
18 public class PrettyLoggingInInterceptor extends LoggingInInterceptor
19 {
20 public PrettyLoggingInInterceptor()
21 {
22 super();
23 }
24
25 public PrettyLoggingInInterceptor(String phase)
26 {
27 super(phase);
28 }
29
30 public PrettyLoggingInInterceptor(int lim)
31 {
32 super(lim);
33 }
34
35 public PrettyLoggingInInterceptor(PrintWriter w)
36 {
37 super(w);
38 }
39
40 @Override
41 protected String transform(String originalLogString)
42 {
43 return PrettyLoggingFeature.formatXmlPayload(originalLogString);
44 }
45 }