Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual page 246

Nsapi
Table of Contents

Advertisement

Init SAFs
This will record the following items
• 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
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.
The second example initializes flexible logging into the file
/user/netscape/server4/https-servername/logs/extended
Init fn=flex-init
extended="/usr/netscape/server4/https-servername/logs/extended"
format.extended="%Ses->client.ip% - %Req->vars.auth-user%
[%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%
%Req->srvhdrs.content-length% %Req->headers.referer%
\"%Req->headers.user-agent%\" %Req->reqpb.method% %Req->reqpb.uri%
%Req->reqpb.query% %Req->reqpb.protocol%"
The third example shows how logging can be tuned to prevent request handling
threads from making blocking calls when writing to log files, instead delegating
these calls to the log flush thread.
Doubling the size of the
defaults and lowering the value of the
to 4 seconds (see Chapter 7, "Syntax and Use of magnus.conf") frees the request
handling threads to quickly write the log data.
246
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
and
buffer-size
num-buffers
LogFlushInterval magnus.conf
.
parameters from their
directive

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents