if (log.isDebugEnabled()) {
if (log.isErrorEnabled()) {
  private void finishStatistics() {    writer.close();    if (writer.checkError()) {      if (log.isDebugEnabled()) {	log.error("Error writing statistics file");      }    }  }