added logging legacy method for apache