Both Version 1.0.0 and current trunk (at revision 721).
Only the first log request succeeeds. Subsequent requests fail with "java.lang.RuntimeException: Writing to closed ByteArrayOutputStream."
Within method createLogData RecordStoreAppender closes its dataOutputStream on each log request, causing all but the first log request to fail.
Neither dataOutputStream nor byteArrayOutputStream must be closed (not even within method close()), as they are created within the constructor and assumed to be available forever.
Just remove the "dataOutputStream.close();" from method createLogData.
1. As DataOutputStream uses the decorator pattern, its close() will delegated to its decorated OutputStream.
2. jaywayjohan and k_o_ appear not to be able to agree upon as to whether dataOuputStream and byteArrayOutputStream should be class fields or local variables.