How to: Modify Logging When Connecting to a Server in Diagnostic Mode
This topic describes how to modify Web synchronization logging behavior in diagnostic mode. For information about how to run Web synchronization in diagnostic mode to test the connection to the computer that is running IIS and to make sure that the Secure Sockets Layer (SSL) certificate is installed correctly, see How to: Configure IIS for Web Synchronization.
To modify logging behavior in diagnostic mode, you must create and modify registry keys on the computer on which IIS is installed in your Web Synchronization topology. After you update the registry to modify behavior in diagnostic mode, you must stop and then restart the IIS service.
To update the registry to modify behavior in diagnostic mode
On the Start menu, click Run.
In the Run dialog box, type Regedit, and the click OK.
Locate one of the following registry keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\100\Replication
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server\100\Replication (Use this registry key if you are running a 32-bit version of SQL Server on a 64-bit Windows operating system.)
Right-click Replication, point to New, and then DWORD Value; or DWORD (32-bit) Value if you are using a 32-bit version of SQL Server on a 64-bit Windows operating system.
In the Edit DWORD Value dialog box, you can add one or more of the following keys. When you modify the value of any of these keys, specify the value as a decimal (base 10) number.
Determines the level of information that will be reported in the log file. You can specify one of the following values:
0 - Logging off.
1 - Errors only.
2 - Level 1 and warnings.
3 - Level 2 and important checkpoints.
4 - Level 3 and debug information.
5 - Level 4 and additional information.
Specifies the maximum number of files into which logging information will be put.
After a log file reaches the maximum size (WebSyncLogFileSize), a number is added to its file name extension, for example, websync.log.1. The active logging file is called websync.log. The files are created in the virtual directory folder.
Specifies the maximum size of a log file. The default file size is 10,000,000 bytes.
Enables or disables logging.
0 - Enables logging.
1 - Disables logging.
Stop and restart the IIS service.