Configurable stats logging