@@ -0,0 +1,1853 @@
+package com.proofpoint.log;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.StringReader;%0Aimport java.io.StringWriter;%0A%0Apublic class LoggingWriter extends StringWriter%0A%7B%0A    private final Logger logger;%0A    private final Type type;%0A%0A    public enum Type%0A    %7B%0A        DEBUG,%0A        INFO%0A    %7D    %0A%0A    public LoggingWriter(Logger logger, Type type)%0A    %7B%0A        this.logger = logger;%0A        this.type = type;%0A    %7D%0A%0A    @Override%0A    public void close() throws IOException%0A    %7B%0A        flush();%0A        super.close();%0A    %7D%0A%0A    @Override%0A    public void flush()%0A    %7B%0A        BufferedReader  in = new BufferedReader(new StringReader(getBuffer().toString()));%0A        for(;;)%0A        %7B%0A            try%0A            %7B%0A                String      line = in.readLine();%0A                if ( line == null )%0A                %7B%0A                    break;%0A                %7D%0A%0A                switch ( type )%0A                %7B%0A                    default:%0A                    case DEBUG:%0A                    %7B%0A                        if ( logger.isDebugEnabled() )%0A                        %7B%0A                            logger.debug(line);%0A                        %7D%0A                        break;%0A                    %7D%0A%0A                    case INFO:%0A                    %7B%0A                        if ( logger.isInfoEnabled() )%0A                        %7B%0A                            logger.info(line);%0A                        %7D%0A                        break;%0A                    %7D%0A                %7D%0A            %7D%0A            catch ( IOException e )%0A            %7B%0A                throw new Error(e); // should never get here%0A            %7D%0A        %7D%0A%0A        getBuffer().setLength(0);%0A    %7D%0A%0A    public void printMessage(String message, Object... args) throws IOException%0A    %7B%0A        write(String.format(message, args) + %22%5Cn%22);%0A    %7D%0A%7D%0A

Revert "no longer needed". Actually used by Bootstrap