PHP logger with rotate functionality