protected ByteArrayOutputStream logStream;
private Pattern pattern = Pattern.compile("writing request [A-Z]+");
public void prepareLogLevel() {
logStream = new ByteArrayOutputStream();
writerAppender = new WriterAppender();
writerAppender.setWriter(new OutputStreamWriter(logStream));
writerAppender.setLayout(new PatternLayout("%m %n"));
storageProxyLogger.removeAllAppenders();
storageProxyLogger.addAppender(writerAppender);
storageProxyLogger.setLevel(Level.TRACE);