Compartir a través de


How to: Disable Logging Events to the Windows Application Log

Because the Microsoft Dynamics NAV Server instance events are always logged to the Application and Services Logs, you can disable logging Microsoft Dynamics NAV Server instance events in the Windows Application log and not lose any data. The Windows Application log contains events from several applications and components. Disabling logging to the Windows Application log enables you to limit the amount of data that is stored.

Important

If you are using System Center Operations Manager to monitor Microsoft Dynamics NAV Server instances, do not disable logging to the Windows Application log. If you do, monitoring will not work.

To disable logging to the Window Applications Log, you can use the Microsoft Dynamics NAV Server Administration tool or modify the Microsoft Dynamics NAV Server instance configuration file (CustomSettings.config).

To disable logging to the Windows Application log by using the Microsoft Dynamics NAV Server Administration tool

  1. To start the Microsoft Dynamics NAV Server Administration tool, choose Start, and in the Search programs and files box, type Microsoft Dynamics NAV Administration, and then choose the related link.

  2. In the left pane, under Console root, select the Microsoft Dynamics NAV Server instance.

  3. In the center pane. choose the Edit button.

  4. Under General, clear the Enable Event Logging to Windows Application Log check box.

  5. Choose the Save button, and then choose the OK button.

    You must restart the Microsoft Dynamics NAV Server instance for the changes to take effect.

  6. To restart, the Microsoft Dynamics NAV Server instance, in the left pane, select the Microsoft Dynamics NAV computer.

    Unless you are administering a remote computer, this is Microsoft Dynamics NAV (local).

  7. In the center pane, right-click an instance, and then choose Restart.

To disable logging to the Windows Application log by modifying the CustomSettings.config file

  1. Open the CustomSettings.config file for the Microsoft Dynamics NAV Server instance in a text editor, such as Notepad.

    By default, the file is located in the C:\Program Files\Microsoft Dynamics NAV\90\Service folder or C:\Program Files\Microsoft Dynamics NAV\90\Service\Instances\<instancename> folder (for multitenant installations).

  2. Set the EnableApplicationChannelLog setting to false.

  3. Save the file, and then restart the Microsoft Dynamics NAV Server instance.

See Also

Concepts

Monitoring Microsoft Dynamics NAV Server Events in the Windows Event Log
Monitoring Microsoft Dynamics NAV Server Event Traces