statistic logging [skip ci]