This step by step guide will help you to enable logging for Web sites or for FTP sites in Internet Information Services (IIS).
Logging is enabled on a Server when a person wants selective log for a website based on certain criteria. Once the logging is enabled, you can enable selective logging for any site on the server. You can also view the log file to see which requests are failing and which requests are succeeding.
How to Enable and Configure Logging in IIS?
Follow below mentioned steps to enable and configure logging in IIS:
Step-1:
START > RUN > Type inetmgr and press Enter
Step-2:
Once the IIS starts, expand ServerName and then expand Web Sites or FTP Sites. Right-click on the Website or the FTP site where you want to enable logging, and then click Properties.
Step-3:
Click on the Web Site tab or FTP Site tab, Select the Enable logging check box.
In the Active log format box, click the format that you want to use.
Step-4:
Click on Properties, and then specify the settings that you want.
For example: You can use W3C Extended log file format.
How to Enable and Configure Logging in IIS7?
1) Open IIS Manager and navigate to Website or FTP Site.
2) In Features View, double-click on Logging option.
3) On the Logging page, in the Actions pane, click on Enable link to enable logging or click on Disable link to disable logging.
You can also do it with Command Line
If you want to enable logging, use the following syntax:
appcmd set config /section:httpLogging /dontLog:False
and If you want to disable logging, use the following syntax:
appcmd set config /section:httpLogging /dontLog:True
I hope this guide will help you to enable or disable Logging in Internet Information Services (IIS).