I am trying to handle an Enterprise Library 6 LogWriter Exception that has recently popped up after upgrading from Enterprise Library 4 to 6.
I either get:
The LogWriter has not been set for the Logger static class. Set it
invoking the Logger.SetLogWriter method.
The LogWriter is already set.
if (Logger.Writer == null)
Thanks for the answers and comments.
I have looked through the project's code and seen that there is nothing built into it that supports this.
Even though the project is no longer under development, I took a chance and posted a feature request.
Best scenario to achieve this requirement would be forking it and adding logic that does a check and additionally defining specific exceptions (see feature request):