I would like to stored log4net config data in my application.config file. Based on my understanding of the documentation, I did the following: 1. Add a reference to log4net.dll 2. Add the following line in AssemblyInfo.cs:
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
Initialize the logger as follows:
private static readonly ILog log = LogManager.GetLogger(typeof(frmWizard));
I have the following code in my app.config:
However, when I run the application, I get the following error on the console: No appender named [Consoleappender] could be found. How can I get log4net to read settings from the config file?
Thanks!