filesize(): stat failed
error when the configuration uses relative paths to name the logfile.
Using realpath() will change relative paths to canonical absolute paths and resolve this issue.