Create temp file with random name if streamid=0.
Set BContentStream.contentLength when streams are copied (assigned)
Make logger objects static