Implemented the struct Log and a method to write a Log to a bin file.