Flex-Rotate-Init - Netscape ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

The second example initializes flexible logging into the file
/user/netscape/servers/https-servername/logs/extended
Init fn=flex-init
extended="/usr/netscape/server6/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.
Init fn=flex-init buffer-size=16384 num-buffers=2000
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%"
See Also
flex-rotate-init, flex-log

flex-rotate-init

Enterprise ServerApplicable in
The
flex-rotate-init
server, including error logs and the
record-useragent AddLog
before calling
magnus.conf
you to specify a time interval for rotating log files. At the specified time interval,
and
buffer-size
num-buffers
LogFlushInterval magnus.conf
-class directives.
Init
function configures log rotation for all log files on the
common-log
SAFs. Call this function in the
. The
flex-init
flex-rotate-init
Chapter 7
.
parameters from their
,
, and
flex-log
section of
Init
function allows
Syntax and Use of magnus.conf
Init SAFs
directive
251

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents