@@ -0,0 +1,1042 @@
+package org.jenkinsci.plugins.aptly;%0A%0Aimport java.io.IOException;%0Aimport java.io.PrintStream;%0Aimport java.util.logging.Logger;%0A%0A/**%0A* Helper class to profide a PrintStream for AptlyRestClient during%0A* logging checking%0A*%0A*/%0Apublic class LogOutputStream extends java.io.OutputStream %7B%0A%0A    static  Logger logger = Logger.getLogger(LogOutputStream.class.getName());%0A    private char lineSeparatorEnd = '%5Cn';%0A    private String lineSeparator = System.getProperty(%22line.separator%22);%0A    private StringBuffer buffer = new StringBuffer();%0A%0A    public void write(int b) throws IOException %7B%0A        char ch = (char) b;%0A        this.buffer.append(ch);%0A        if (ch == this.lineSeparatorEnd) %7B%0A            // Check on a char by char basis for speed%0A            String s = buffer.toString();%0A            if (s.indexOf(lineSeparator) != -1) %7B%0A                // The whole separator string is written%0A                logger.info(s.substring(0, s.length() - lineSeparator.length()));%0A                buffer.setLength(0);%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A%0A

add helper class which provides a PrintStream backed by a logger