Change Regular expression error log to re.log