Export (0) Print
Expand All

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

  1. On the Start menu, click Run.

  2. In the Run dialog box, type Regedit, and the click OK.

  3. 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.)

  4. 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.

  5. 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.

    Registry keys

    Key type

    Data type

    Range

    Description

    WebSyncLogSeverity

    DWORD

    int

    0-5

    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.

    WebSyncNumberOfLogFiles

    DWORD

    int

    2-4294967295

    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.

    WebSyncLogFileSize

    DWORD

    int

    1,000,000-4,294,967,295 bytes

    Specifies the maximum size of a log file. The default file size is 10,000,000 bytes.

    WebSyncLoggingOff

    DWORD

    int

    0-1

    Enables or disables logging.

    0 - Enables logging.

    1 - Disables logging.

  6. Stop and restart the IIS service.

Community Additions

ADD
Show:
© 2014 Microsoft