Hitachi

Hitachi Application Server V10 Definition Reference Guide (For UNIX® Systems)


2.3.173 TransferLog

TransferLog outputs the access log in the format specified in the LogFormat directive without specifying the label name.

Description

TransferLog specifies a file to store the log, or a program that outputs the log. You can specify the log format in the LogFormat directive without specifying the label name.

If the log format is specified in the LogFormat directive, IPv6 addresses and host names corresponding to IPv6 addresses can be output.

If the log format is not specified in the LogFormat directive, the log is output in the standard log format.

Syntax

TransferLog {file_name|pipe}

Specifiable values

file_name

Specify the name of the file to store the log. For file_name, specify an absolute path, or a relative path from the value specified in the ServerRoot directive.

pipe

Specify the program that receives the log information from the standard input in "|program_name" format.

Locations where it can be written

httpsd.conf and <VirtualHost>

Example

TransferLog "|
\"\"installation_directory_of_Application_Server/httpsd/sbin/rotatelogs.exe\" 
\"installation_directory_of_Application_Server/httpsd/logs/access\" 86400\"" 

The example uses the rotatelogs program to collect the log every 24 hours.