Add throw exception in invalid log file