Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual page 244

Nsapi
Table of Contents

Advertisement

Init SAFs
buffer-size
num-buffers
More on Log Format
The
flex-init
as the name portion of a name-value pair stored in a parameter block in the server.
(The one exception to this rule is the
current system date.)
%d/%b/%Y:%H:%M:%S
(See Chapter 4, "Creating Custom SAFs" for more information about parameter
blocks and Chapter 5, "NSAPI Function Reference," for functions to manipulate
pblocks.)
Any additional text is treated as literal text, so you can add to the line to make it
more readable. Typical components of the formatting parameter are listed in
Table 7-1. Certain components might contain spaces, so they should be bounded by
escaped quotes (
If no format parameter is specified for a log file, the common log format is used:
"%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%]
\"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%
%Req->srvhdrs.content-length%"
You can now log cookies by logging the
In the following table, the components that are enclosed in escaped double quotes
(\") are the ones that could potentially resolve to values that have white spaces.
Table 7-1
Flex-log option
Client Host name (unless iponly is
specified in flex-log or DNS name is
not available) or IP address
Client DNS name
System date
Full HTTP request line
244
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
Specifies the size of the global log buffer. The default is
8192. See the third flex-init example below.
Specifies the maximum number of logging buffers to use.
The default is 1000. See the third flex-init example
below.
function recognizes anything contained between percent signs (%)
%SYSDATE%
plus the offset from GMT.
").
\
Typical components of flex-init formatting
component which delivers the
%SYSDATE%
is formatted using the time format
Req->headers.cookie.
Component
%Ses->client.ip%
%Ses->client.dns%
%SYSDATE%
\"%Req->reqpb.clf-request%\"
name component.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents