Init SAFs
246
Netscape Enterprise Server NSAPI Programmer’s Guide • November 2001
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.
The second example initializes flexible logging into the file
/user/netscape/server4/https-servername/logs/extended
.
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
buffer-size
and
num-buffers
parameters from their
defaults and lowering the value of the
LogFlushInterval
magnus.conf
directive
to 4 seconds (see Chapter 7, “Syntax and Use of magnus.conf”) frees the request
handling threads to quickly write the log data.
• 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
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%"
Summary of Contents for ENTERPRISE SERVER 6.0
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 0 November 2001...
Page 134: ...CGI to NSAPI Conversion 134 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 306: ...cinfo 306 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 312: ...Sample MIME Types File 312 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 324: ...Buffered Streams 324 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 332: ...332 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 340: ...340 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 346: ...346 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 352: ...352 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...