
18 Aug
2011
18 Aug
'11
9:38 p.m.
Hello Simon,
if you're going for such a solution, then why not use difference lists or even better bytestring builders as your representation of the not-yet-flushed logging journal? Bytestring builders (from the blaze-builder library) support a fast append and fast serialization from a number of formats to bytestring.
Difference lists are not necessary at this moment because a list is generated at once in the apacheFormat: http://hackage.haskell.org/packages/archive/wai-logger/0.0.0/doc/html/src/Ne... If my understanding is correct, blaze-builder does not help hPutLogStr. What I want to do is directly copy ByteString or List to *Handle's buffer*. http://hackage.haskell.org/packages/archive/wai-logger/0.0.0/doc/html/src/Ne... --Kazu