Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Event Log: Application_Start / Application_End View modes: 
User avatar
Member
Member
tspring-allegra - 7/4/2011 4:50:36 AM
   
Event Log: Application_Start / Application_End
Hi

Quick question, is there any way to set the Event Log so it ignores any Application_Start or Application_End events?

We're currently running over 20 websites on the same server via Kentico, and obviously this means we have numerous Environment Shutdown's when the individual application pools recycle.

I'm not really interested in knowing when this happens and would like to stop them filling-up the Event Log so I can easily see more important events.

Thanks,
Tim

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 7/7/2011 3:38:03 AM
   
RE:Event Log: Application_Start / Application_End
Hello,

those events are being logged in the ~\App_Code\Global.asax.cs file. You can adjust it as per your needs to not log such app start/end events.

Hope this sheds some light.

Best regards
Ondrej Vasil

User avatar
Member
Member
tspring-allegra - 7/11/2011 5:25:05 AM
   
RE:Event Log: Application_Start / Application_End
Hi

Thanks for the help.

I've looked in the ~\App_Code\Global.asax.cs file, I can see where it logs the Application End but not where it logs the Application Start.

In the public void Application_Start(object sender, EventArgs e) function I dont see a reference to the event being logged like I do in the other functions. Am I looking in the correct place?

Tim

User avatar
Member
Member
tspring-allegra - 7/11/2011 5:35:27 AM
   
RE:Event Log: Application_Start / Application_End
Sorry, I found it!

I was searching for the wrong thing. When I searched for "LogEvent" I found the correct sections of code in the FirstRequestInitialization & LogApplicationEnd functions.

Thanks again.