Given that you have
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log4Net.config", Watch = true)]
in your AssemblyInfo.cs file, when is Log4Net configured? Is it at the application start or when you use a logger for the first time?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The config file is used when you cause a call to the
LoggerManagerclass. This is usually caused by calling LogManager.GetLogger.See http://logging.apache.org/log4net/release/sdk/log4net.Config.XmlConfiguratorAttribute.html for more details; specifically the note: