Give error if a log file name has bad extension