2.2.4 INET_LOG_CONFIGURATION

The INET_LOG_CONFIGURATION structure contains configuration information for Internet protocol server logging.

This type is declared as follows:

 typedef struct _INET_LOG_CONFIGURATION {
   DWORD inetLogType;
   DWORD ilPeriod;
   WCHAR rgchLogFileDirectory[260];
   DWORD cbSizeForTruncation;
   WCHAR rgchDataSource[260];
   WCHAR rgchTableName[30];
   WCHAR rgchUserName[257];
   WCHAR rgchPassword[257];
 } INET_LOG_CONFIGURATION,
  *LPINET_LOG_CONFIGURATION;

inetLogType: A 32-bit integer that specifies the type of log to be written. This field MUST be set to one of the following values.

Value

Meaning

INET_LOG_DISABLED

0x00000000

Logging is disabled.

INET_LOG_TO_FILE

0x00000001

The log is written to a file.

INET_LOG_TO_SQL

0x00000002

The log is written to a Structured Query Language (SQL) database.

INET_LOG_INVALID

0xFFFFFFFF

The log is not valid.

ilPeriod: Specifies the periodicity of Internet protocol server logging. This field MUST be set to one of the following values.

Value

Meaning

INET_LOG_PERIOD_NONE

0x00000000

There is no log period.

INET_LOG_PERIOD_DAILY

0x00000001

The log period is daily.

INET_LOG_PERIOD_WEEKLY

0x00000002

The log period is weekly.

INET_LOG_PERIOD_MONTHLY

0x00000003

The log period is monthly.

INET_LOG_PERIOD_HOURLY

0x00000004

The log period is hourly.

INET_LOG_PERIOD_YEARLY

0x00000005

The log period is yearly.

INET_LOG_PERIOD_INVALID

0xFFFFFFFF

The log period is not valid.

rgchLogFileDirectory: A null-terminated string that specifies the destination of the Internet protocol server log.

cbSizeForTruncation: Specifies the maximum size in bytes for each log file.

rgchDataSource: A null-terminated string that specifies the Open Database Connectivity (ODBC) data source name to which the Internet protocol server log is to be written.

rgchTableName: A null-terminated string that specifies the name of the table on rgchDataSource to which the Internet protocol server log is to be written.

rgchUserName: A null-terminated string that specifies the name of the user for the ODBC connection.

rgchPassword: A null-terminated string that specifies the password associated with the rgchUserName user name.