Posting your configuration would be helpful.

----- Original Message ----

From: Daniel Essin <[EMAIL PROTECTED]>

To: [email protected]

Sent: Monday, December 4, 2006 9:23:07 PM

Subject: Startup-Shutdown Error?



       I've git the following code in the main form for a project:

         [NonSerialized]

         protected static readonly ILog log = LogManager.GetLogger("errorlog");

         public MasterProject() {

                       

             InitializeComponent();

             log.Info("Application Started");

         }

         private void MasterProject_FormClosed(object sender, 
FormClosedEventArgs e)

         {

             log.Info("Application Ended");

         }

 

 

 This is the log:

 2006-12-04 18:21:27,508 [860] INFO  errorlog - Application Started

 2006-12-04 18:21:27,508 [860] INFO  errorlog - Application Started

 2006-12-04 18:21:29,883 [860] INFO  errorlog - Application Ended

 2006-12-04 18:21:29,883 [860] INFO  errorlog - Application Ended

 

 Why are the entries duplicated? I have stepped this in the debugger and each 
call is only executed once.

 

 Thank you,

 de

 

  







Reply via email to