I have the following configuration and code, the writer.logentry is not throwing an exception but the file is not …