![Netscape ENTERPRISE SERVER 6.1 Manual Download Page 250](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653250.webp)
Init SAFs
250
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
Examples
The first example below initializes flexible logging into the file
/usr/netscape/servers/https-servername/logs/access
.
This will record the following items
This is the default format, which corresponds to the Common Log Format (CLF).
It is advisable that the first six elements of any log always be in exactly this format,
because a number of log analyzers expect that as output.
Any header value
%Req->headers.
headername
%
Name of authorized user
%Req->vars.auth-user%
Value of a cookie
%Req->headers.cookie.
name
%
Value of any variable
in
Req->vars
%Req->vars.
varname
%
Virtual Server ID
%vsid%
Init fn=flex-init
access="/usr/netscape/servers/https-servername/logs/access"
format.access="%Ses->client.ip% - %Req->vars.auth-user%
[%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%
%Req->srvhdrs.content-length%"
•
ip or hostname, followed by the three characters “
-
”
•
the user name, followed by the two characters “
[
”
•
the system date, followed by the two characters “
]
”
•
the full HTTP request in quotes, followed by a single space
•
the HTTP result status in quotes, followed by a single space
•
the content length
Table 7-1
Typical components of flex-init formatting
Flex-log option
Component
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...