HTTP_LOGGING_TYPE enumeration

The HTTP_LOGGING_TYPE enumeration defines the type of logging that is performed.

This enumeration is used in the HTTP_LOGGING_INFO structure.

Syntax


typedef enum  { 
  HttpLoggingTypeW3C,
  HttpLoggingTypeIIS,
  HttpLoggingTypeNCSA,
  HttpLoggingTypeRaw
} HTTP_LOGGING_TYPE, *PHTTP_LOGGING_TYPE;

Constants

HttpLoggingTypeW3C

The log format is W3C style extended logging. Applications choose the fields that are logged in the Fields member of the HTTP_LOGGING_INFO structure.

When this type of logging is set on a URL Group, logging is similar to the IIS6 site logging. When set on a server session this format functions as a centralized logging for all of the URL Groups.

HttpLoggingTypeIIS

The log format is IIS5/6 style logging. This format has a fixed field definition; applications cannot choose which fields are logged. This format cannot be chosen when setting the logging property on a server session.

HttpLoggingTypeNCSA

The log format is NCSA style logging. This format has a fixed field definition; applications cannot choose which fields are logged. This format cannot be chosen when setting the logging property on a server session.

HttpLoggingTypeRaw

The log format is centralized binary logging. This format has a fixed field definition; applications cannot choose which fields are logged. This format cannot be chosen when setting the logging property on a URL Group.

Remarks

The log files are named based on the rollover type and logging format as shown in the following table.

FormatRollover Type Filename Pattern
Microsoft IIS Log FormatSizeinetsvnn.log
Hourlyinyymmddhh.log
Dailyinyymmdd.log
Weeklyinymmww.log
Monthlyinyymm.log
NCSA Common Log File FormatSizencsann.log
Hourlyncyymmddhh.log
Dailyncyymmdd.log
Weeklyncyymmww.log
Monthlyncyymm.log
W3C Extended Log File FormatSizeextendnn.log
Hourlyexyymmddhh.log
Dailyexyymmdd.log
Weeklyexyymmww.log
Monthlyexyymm.log

 

The following table lists time element characters and what they represent.

ItemDescription
yyThe two digit representation of the year.
mmThe two digit representation of the month.
wwThe two digit representation of the week.
ddThe two digit representation of the day.
hhThe two digit representation of the hour in 24 hour notation.
nnThe two digit representation of the numerical sequence.

 

For more information about the log file formats, see IIS Log File Formats.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Http.h

See also

HTTP Server API Version 2.0 Enumeration Types
HTTP_LOGGING_INFO

 

 

Community Additions

ADD
Show: