1

I am trying to run my proggram using "log4net", but I get same message "The Application is in break mode". When I put that line in remarks the programm is running:

//private static readonly log4net.ILog log = log4net.LogManager.GetLogger
//(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

Otherwise I get this message: The application is in break mode.

Any Ideas?

David
  • 239
  • 1
  • 2
  • 12
  • Maybe these will help: https://stackoverflow.com/q/44270785/982149 and https://stackoverflow.com/q/36204009/982149 – Fildor Jan 30 '19 at 08:51
  • Unrelated: `log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);` This seems not right to me. Where do you have this code? The logger should be a private static readonly **class** variable. It seems you are trying to get a logger locally inside a method? – Fildor Jan 30 '19 at 08:53

0 Answers0