The error is telling you that the logger does not have permissions to write to the log. Assuming the error is coming from Web API and Web API is running on IIS, then you must grant right access to the application pool identity Web API is running under.
Otherwise, you'll need to tell us a bit more about how the logger works. Normal troubleshooting stuff, like provide a code sample that reproduces this issue.