Proxy Server Logging Fix: Msplog.dll Changed to Record 4 Digit Year
ID: Q228540
|
The information in this article applies to:
-
Microsoft Proxy Server version 2.0
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
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:
Q238375 Proxy Server 2.0 Service Pack 1: List of Fixes
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).
- 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.
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