record data in log