simplify the save log method