logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Essin <es...@ieee.org>
Subject Startup-Shutdown Error?
Date Tue, 05 Dec 2006 02:23:07 GMT
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