log when buy