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

ID: Q228540


The information in this article applies to:

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

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

A supported fix that corrects this problem is now available from Microsoft, but it has not been fully regression tested and should be applied only to systems experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information on support costs, please go to the following address on the World Wide Web:

http://www.microsoft.com/support/supportnet/overview/overview.asp
The English version of this fix should have the following file attributes or later:
File name
Msplog.dll

NOTE: If this product was already installed on your computer when you purchased it from the Original Equipment Manufacturer (OEM) and you need this fix, please call the Pay Per Incident number listed on the above Web site. If you contact Microsoft to obtain this fix, and if it is determined that you only require the fix you requested, no fee will be charged. However, if you request additional technical support, and if your no-charge technical support period has expired, or if you are not eligible for standard no-charge technical support, you may be charged a non-refundable fee.

For more information about eligibility for no-charge technical support, see the following article in the Microsoft Knowledge Base:
Q154871 Determining If You Are Eligible for No-Charge Technical Support


STATUS

Microsoft has confirmed this to be 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: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).

  1. Start Registry Editor (Regedt32.exe).


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


  3. On the Edit menu, click Add Value, and then add the following registry value:


  4. Value Name: LogFileDateFormat

    Data Type: REG_SZ

    Value: Date format String (See below for samples.)
  5. Quit Registry Editor.


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.



  • For more information about how Microsoft products are affected by year 2000 (Y2K) issues, please see the following Microsoft World Wide Web site:
    http://www.microsoft.com/year2000/

    Additional query words:

    
    Keywords          : 
    Version           : winnt:2.0
    Platform          : winnt 
    Issue type        : kbbug 

    Last Reviewed: July 2, 1999