Share via


Enable Analytic and Debug Logs

Applies To: Windows Server 2008, Windows Vista

Analytic and Debug logs are disabled by default. When enabled, they can quickly fill with a large number of entries. For this reason, you will probably want to turn them on for a specified period to gather some troubleshooting data and then turn them off again. You can perform this procedure by using either the Windows interface or a command line.

To enable Analytic and Debug logs by using the Windows interface

  1. Start Event Viewer.

  2. Ensure that Analytic and Debug logs are visible by following the steps in Show or Hide Analytic and Debug Logs.

  3. In the console tree, navigate to and select the Analytic or Debug log you want to enable.

  4. On the Action menu, click Properties.

  5. On the properties dialog box, select Enable logging and click OK.

To enable Analytic and Debug logs by using a command line

  1. To open a command prompt, click Start, click Run, type cmd, and click OK.

  2. Type the following text:

    wevtutil sl <logname> /e:true
    

Additional references