![Netscape ENTERPRISE SERVER 6.1 Скачать руководство пользователя страница 251](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653251.webp)
Init SAFs
Chapter
7
Syntax and Use of magnus.conf
251
The second example initializes flexible logging into the file
/user/netscape/servers/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.
See Also
flex-rotate-init, flex-log
flex-rotate-init
Enterprise ServerApplicable in
Init
-class directives.
The
flex-rotate-init
function configures log rotation for all log files on the
server, including error logs and the
common-log
,
flex-log
, and
record-useragent AddLog
SAFs. Call this function in the
Init
section of
magnus.conf
before calling
flex-init
. The
flex-rotate-init
function allows
you to specify a time interval for rotating log files. At the specified time interval,
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%"
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%"
Содержание ENTERPRISE SERVER 6.1
Страница 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Страница 18: ...Where to Find Related Information 18 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 138: ...CGI to NSAPI Conversion 138 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 214: ...NSAPI Functions in Alphabetical Order 214 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 310: ...The Netscape LDAP Schema 310 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 324: ...Sample MIME Types File 324 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...