log stats utility