logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Grabowski <rongrabow...@yahoo.com>
Subject Re: Startup-Shutdown Error?
Date Tue, 05 Dec 2006 04:45:04 GMT

Posting your configuration would be helpful.


----- Original Message ----

From: Daniel Essin <essin@ieee.org>

To: log4net-user@logging.apache.org

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

 

  








Mime
View raw message