[This is preliminary documentation and subject to change]

# Enabling Logging

You can enable logging for individual Web and FTP sites and choose the log format. When logging is enabled, it is enabled for all the site's directories, however, you can disable it for specific directories.

###### To enable logging on a Web or FTP site

1. Select a Web or FTP site, and open its property sheets.
2. On the Web Site or FTP Site property sheet, select the Enable Logging check box.
3. In the Active log format list, select a format. By default, the Enable Logging check box is selected and the format is W3C Extended Log File Format, with the following fields enabled: Time, Client IP Address, Method, URI Stem, and HTTP Status.

   Note If the format you select is ODBC logging, click Properties, and type the Data Source Name (DNS) and the name of the table within the database in the boxes. If a user name and password are required to access the database, type the necessary credentials, and click OK.

4. Click Apply.
5. Click OK.

###### To disable or enable logging for a specific directory on a site

1. Select the directory, and open its property sheets.
2. On the Home Directory or Directory property sheet, find the Log visits check box. By default, the check box is selected.
3. To disable logging for the directory, clear the check box; to enable logging, select the check box. These settings do not affect process accounting.

Related Topics

- For descriptions of the available log file formats, see About Logging Site Activity.
- For information on setting W3C Extended logging fields, see Customizing W3C Extended Logging.
- For information on logging frequency and log size, see Saving Log Files.
- For a reference list of logging properties, see Logging Properties Reference.

© 1997-2001 Microsoft Corporation. All rights reserved.