//Doing that efficiently probably means cutting out all the
//excess buffer copies here, and appending into an OutputBuffer.
byte[] data;
if(FAKE_LOG4J_HEADER) {
StringBuilder result = new StringBuilder();
ISO8601DateFormat dateFormat = new org.apache.log4j.helpers.ISO8601DateFormat();
result.append(dateFormat.format(new java.util.Date()));
result.append(" INFO org.apache.hadoop.chukwa.");
result.append(type);
result.append(": ");
result.append(o.getString("stdout"));
data = result.toString().getBytes();