Add Method

Applies To   See Also   Example  

Adds a new log field to the collection.

Syntax
Function Add(
    Prefix As String,
    Identifier As String) As LogField
Parameters

Prefix

The prefix used to define the field used in the log file.

Identifier

The identifier used to define the field used in the log file.

Remarks

You must commit the changes after adding the new log field. The following table lists the supported prefixes and identifiers for the LogField object:

Supported Prefixes Supported Identifiers Description

no prefix

bytes

Identifies the bytes transferred to the WCS.

no prefix

date

Identifies the date at which the transaction completed.

c

ip

Client prefix. Identifies the IP address of the browser.

cs

ip

Client to server prefix. Identifies the IP address of the browser.

r

ip

Remote prefix. Identifies the IP address of the web server.

rs

ip

Remote server to server prefix. This prefix is used by proxies. Identifies the IP address of the web server.

s

ip

Server prefix. Identifies the IP address of the WCS.

c

method

Client prefix. Identifies the access method. The method will be GET or POST and only from HTTP requests.

cs

method

Client to server prefix. Identifies the access method. The method will be GET or POST and only from HTTP requests.

no prefix

status

Identifies the status code.

no prefix

time

Identifies the time at which the transaction completed.

no prefix

time-taken

Identifies the time taken for the transaction to complete in milliseconds.

c

uri

Client prefix. Identifies the Uniform Resource Identifier (URI).

cs

uri

Client to server prefix.

rs

uri

Remote server to server prefix. This prefix is used by proxies.

c

uri-query

Client prefix. Identifies the query portion of the URI.

cs

uri-query

Client to server prefix. Identifies the query portion of the URI.

rs

uri-query

Remote server to server prefix. This prefix is used by proxies.Identifies the query portion of the URI.

c

uri-stem

Client prefix.Identifies the stem portion of the URI.

cs

uri-stem

Client to server prefix. Identifies the query portion of the URI.

rs

uri-stem

Remote server to server prefix. This prefix is used by proxies.Identifies the query portion of the URI.

x

viewrpt-users

Application specific identifier. The number for people actually viewing.

Note:    "No prefix" entries, in the Supported Prefixes column, indicate that a prefix is not necessary and adding one won't have any affect on the log created.



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com