fix APACHELOG_MAX_FIELDS bug and improved log messages