Implement write and load logs