avg price logging