Should there be problems with the removal of newline characters from the property replies -- resulting in a wrong number of bytes written to the logfile -- then consider adding "ctx=bin" to the creat call.