Log notices, warnings or (fatal) errors into a log file.