Contained WithinFind More DocumentationFeatured Support Resources | PDF로 이 문서 다운로드 (1957 KB)
Appendix C Using the Custom Log File FormatThis chapter contains information about the log format used by Web Server. Use these format options to customize the format of your log files. You can enter them through the Admin Console, or edit the format subelement of the access-log element in server.xml. For more information, see access-log. You can use variables and expressions in log formats with the syntax $variable and $(expression). For more information, see Variables, and Expressions. Custom Log File FormatWhen creating a custom log format, anything contained between percent signs (%) is recognized as the name portion of a name-value pair stored in a parameter block in the server. Any additional text is treated as literal text, so you can add to the line to make it more readable. The one exception to the percent sign rule is the %SYSDATE% component, which delivers the current system date. %SYSDATE% is formatted using the time format %d/%b/%Y:%H:%M:%S plus the offset from GMT. If no format parameter is specified for a log file, the common log format is used: "%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%" Typical components of log file format are listed in the following table. Because certain components could resolve to values that contain spaces, they are enclosed in escaped quotes (\"). Table C–1 Typical Components of Custom Log Formatting
|
||||||||||||||||||||||||||||||||||||||||||||||||