Microsoft KB Archive/228540

= Proxy Server Logging Fix: Msplog.dll Changed to Record 4 Digit Year =

Article ID: 228540

Article Last Modified on 9/23/2005

-

APPLIES TO


 * Microsoft Proxy Server 2.0 Standard Edition

-



This article was previously published under Q228540



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
By Default, Microsoft Proxy Server 2.0 logs the year in two-digit format.



CAUSE
This is by design and does not affect the year 2000 compliance of Microsoft Proxy Server 2.0



RESOLUTION
This problem is resolved in Microsoft Proxy Server 2.0 Service Pack 1 (SP1). For more information about Service Pack 1, please see the following article in the Microsoft Knowledge Base:

238375 Proxy Server 2.0 Service Pack 1: List of Fixes



STATUS
Microsoft has confirmed that this is a problem in Microsoft Proxy Server 2.0.



MORE INFORMATION
This fix was created to optionally allow Proxy Server to log four-digit years. To obtain this fix, contact Microsoft Product Support and reference this Knowledge Base Article.

Msplog.dll has been fixed to read a format string from the registry to be used by the date format API (GetDateFormat). Both the format string and the date field string are limited to 15 characters. Using a format string that is longer than 15 characters will cause the logger to use the current format (M/D/YY).

If the date string returned by Windows NT is greater than 15 characters, the entire log entry containing this date string will be thrown out and not logged to the file. In addition to the hotfix, the following registry entry must be changed:

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

 Start Registry Editor (Regedt32.exe). Locate the following key in the registry:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ W3Proxy\Parameters\

NOTE: The above registry key is one path; it has been wrapped for readability. On the Edit menu, click Add Value, and then add the following registry value:

Value Name: LogFileDateFormat

Data Type: REG_SZ

Value: Date format String (See below for samples.)

 Quit Registry Editor.</ol>

The following date format string samples use March 4th 1999 as an example:

dddd/MMMM/yyyy = Thursday/March/1999

d/MMMM/yyyy = 4/March/1999

d/M/yyyy = 4/3/1999

MMMM/d/yyyy = March/4/1999

NOTES
 * This registry change is common to all Proxy Server logging configurations.
 * The registry key is accessed once during the creation of a new log file.
 * Changes to the key's value will reflect after restarting the services.

Keywords: kbbug kbfix kbqfe kbhotfixserver KB228540

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.