Configuring Notification Services Event Logging

Configuring Notification Services Event Logging

SQL Server 2005

Most logging for Notification Services is controlled at the instance level. Each instance has a file named NSservice.exe.config. Within this file are XML elements that control logging levels for various areas of Notification Services operation. Each of these areas is represented by one XML element.

To configure logging levels for these areas of Notification Services, edit the value attribute of the XML elements in this file and then restart your instances of Notification Services If your instances are scaled out across multiple computers, you can configure the logging level per computer.

The default installation folder is C:\Program Files\Microsoft SQL Server\90\Notification Services\n.n.n\bin. You can edit the NSservice.exe.config file with any text or XML editor.

  1. Open the Bin folder of the Notification Services installation.

    The default installation folder is C:\Program Files\Microsoft SQL Server\90\NotificationServices\n.n.nnn\bin.

  2. Open the NSservice.exe.config file.

  3. For each of the items in the <switches> node, set the logging level by changing the value attribute.

    In the following example, the LogAdministrative logging level is set to 3, which turns on logging for error, warning, and informational events for the administrative components:

    <add name="LogAdministrative" value="3"/>

    Initially, each logging option is set to 2, which turns on logging for error and warning messages only.

  4. To apply the logging changes, save the file and restart the instance of Notification Services.

The NSservice.exe.config file contains elements that control event logging from various components of Notification Services; they are listed in the following table.

Element name Logging category


SQL Server Management Studio and nscontrol utility events


NS$instanceName Microsoft Windows service events


Event provider events


EventCollector object events


Generator events


Distributor events


Vacuumer events


Performance monitor events


Events for all other components, such as the standard content formatter and delivery protocols

Logging levels determine which types of events are written to the Application log. You can control the logging level by setting the value attribute to one of the following values.

Value Description




Error messages only


Error and warning messages


Error, warning, and informational messages


Verbose logging, which writes all messages to the Application log

Community Additions

© 2015 Microsoft