tags:

views:

53

answers:

5

What is the recommended folder to write the web application log files?

c:\inetpub\wwwroot\Logs, App_Data folder... ?

A: 

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.

Oded
A: 

You may need to give special permissions to that folder , so make sure (for security reasons) it resides outside the web application folder

athina.bikaki
A: 

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

Chetan http://chetanwarade.wordpress.com/

chetan
Please do not promote your blog like this - it is frowned upon and doesn't add anything to the answer.
Oded
+1  A: 

I prefer App_Data which is always writable by design and closed to access from the browser by ASP.NET filtering module.

Artem K.
+1  A: 

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.

PhilPursglove
I was thinking primarily of IIS logs when I wrote this but it's a potential problem for any kind of logging.
PhilPursglove