What is the recommended folder to write the web application log files?
c:\inetpub\wwwroot\Logs, App_Data folder... ?
What is the recommended folder to write the web application log files?
c:\inetpub\wwwroot\Logs, App_Data folder... ?
There is no standard location for application logs. Use what you and your team agree on.
IIS 6 logs normally live in %WINDIR%\Logs
.
IIS 7 seems to default to %SystemDrive%\inetpub\logs\LogFiles
.
You may need to give special permissions to that folder , so make sure (for security reasons) it resides outside the web application folder
Hi This really depends on you where you want it to store. i will recommend you to use elmah (Error Logging Modules and Handlers for ASP.NET) which gives you flexibility to handle logs
I prefer App_Data which is always writable by design and closed to access from the browser by ASP.NET filtering module.
You should consider keeping your logs on a separate drive to the one that contains your Windows installation. This is because it is possible for your log files eventually to use all the space on your system drive, at which point your server will stop responding - keeping logs on a separate drive avoids this issue.