[C] Add basic definitions for log reading/writer.  Add log writing implementation.
[C] Implemented reading log header.
[C] Implemented log file reader.