public SALTApplication() : base() { //The MvcApplication is responsible for initilizing logging. If we try to get a logger //before logging has been configured then this class will have no logging for the life of //the application. // //To fix this we break the normal logger get pattern and load in the constructor after //the application base has done its job. // //We only want to do this the first time we need to (the logger is static) so we check //for null. //Note, other than registering for events and setting this logger you should avoid doing //too much in an appliction constructor as they are called with every system request. if (_log == null) { _log = ASA.Log.ServiceLogger.ASALogManager.GetLogger(CLASSNAME); } //Hooking in before the application starts up BeforeApplicationStart += new EventHandler(PreApplicationStart); BeforeApplicationEnd += new EventHandler(PreApplicationShutDown); }