You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Daniel Essin <es...@ieee.org> on 2006/12/05 03:23:07 UTC
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