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