Aug 16, 2018 07:21 PM|javier x brenes|LINK
I have been looking for an answer to this question and I have found nothing.
How can I configure Log4net to use a RollingLogFileAppender when the AdoNetAppender (configure it as the default) can not connect to the database or the connectionString is not the correct one?
In order to clarify this, I have a WebService and I use log4net to save my logs into the database but I had a situation where the connection string had the wrong user and password, that thows an exception and when I tried to save the log of course nothing
was saved because the log4net Ado appender uses the same connection string, If that happens, I would like to save the logs using another append.
It could be using RollingLogFileAppender to get a log File.
how can I accomplish this ?