コード例 #1
0
 @Bean
 public LoggingInInterceptor getLogInInterceptor() {
   LoggingInInterceptor logIn = new LoggingInInterceptor();
   logIn.setPrettyLogging(true);
   logIn.setShowBinaryContent(true);
   logIn.setShowMultipartContent(true);
   return logIn;
 }
コード例 #2
0
ファイル: LoggingFeature.java プロジェクト: CzarnyPeter/cxf
  @Override
  protected void initializeProvider(InterceptorProvider provider, Bus bus) {
    if (limit == DEFAULT_LIMIT && inLocation == null && outLocation == null && !prettyLogging) {
      provider.getInInterceptors().add(IN);
      provider.getInFaultInterceptors().add(IN);
      provider.getOutInterceptors().add(OUT);
      provider.getOutFaultInterceptors().add(OUT);
    } else {
      LoggingInInterceptor in = new LoggingInInterceptor(limit);
      in.setOutputLocation(inLocation);
      in.setPrettyLogging(prettyLogging);
      in.setShowBinaryContent(showBinary);
      LoggingOutInterceptor out = new LoggingOutInterceptor(limit);
      out.setOutputLocation(outLocation);
      out.setPrettyLogging(prettyLogging);
      out.setShowBinaryContent(showBinary);

      provider.getInInterceptors().add(in);
      provider.getInFaultInterceptors().add(in);
      provider.getOutInterceptors().add(out);
      provider.getOutFaultInterceptors().add(out);
    }
  }