WebToB의 설정파일은 C:\TmaxSoft\JEUS5.0\webserver\config 경로에 있으며 그중 *LOGGING필드는 웹로그기록에 대한 설정이다.


옵션
FileName         - 로그파일의 이름
Format           - 로그기록형식
Option = "sync"  - 로그기록시 메모리 버퍼를 사용하는지, 바로 디스크에 기록하는지 결정
ValiDays = "1"   - 하루단위로 로그를 저장 (Default)
           "0"   - 하나의 파일에 로그를 저장


포멧

Apache와 마찬가지로 WebToB가 지원하는 웹로그포멧은 다음과 같다.

  -NCSA Common Log File Format(CLF)
  -Custom Log File Format

WebtoB웹로그에서는 디폴트로 CLF Format포멧을 준수한다.

설정파일========================================================
*LOGGING
log1
FileName = "C:/TmaxSoft/JEUS5.0/webserver/log/access.log",
Format = "DEFAULT",
Option = "sync"
===============================================================
웹로그 예)
10.10.149.41 - - [08/Apr/2009:10:59:47 +0900] "GET /examples/images/bgColor.gif HTTP/1.1" 304 -



CLF 포멧을 사용하지 않고 임의의 포멧을 만들기 위해서는 Custom Log File Format을 사용해야 한다.


설정파일 예=====================================================
*LOGGING
log1
FileName = "C:/TmaxSoft/JEUS5.0/webserver/log/access.log",  
Format = "%h %l %u %t \"%r\" %>s %b \"{Referrer}\" \"{User-Agent}\",
Option = "sync"
==============================================================




일반적으로 많이 사용되는 Custome Log File Format로그 형식은 다음과 같다.

Common Log Format (CLF)
"%h %l %u %t \"%r\" %>s %b"
가상호스트 정보를 포함한 Common Log Format
"%v %h %l %u %t \"%r\" %>s %b"
NCSA extended/combined 로그 형식
"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
Referer 로그 형식
"%{Referer}i -> %U"
Agent (브라우저) 로그 형식
"%{User-agent}i"

포멧 지시어에 대한 자료는 아래 링크를 참고한다.
http://httpd.apache.org/docs/2.0/ko/mod/mod_log_config.html
2009/08/27 11:22 2009/08/27 11:22

Trackback Address :: https://youngsam.net/trackback/855