Log
From Fxp Wiki
Contents |
Wiki logs
Il y a deux type de journaux de connections crées. L'un passant directement par Tomcat et Log4j, l'autre passant par Apache.
There are two kinds of logs created: one directly via Tomcat and Log4j, the other through Apache.
Log
2003-12-21 02:38:55,660 [Thread-2] INFO JSPWiki Cib:LacanS22 - Request for page 'LacanS22' from 210-85-86-107.cm.apol.com.tw by null
On voit ici l'adresse du visiteur en langage humain.
We see the adress of the visitor in human language
210-85-86-107.cm.apol.com.tw
jspwiki.properties
# # Log everything into a file, roll it over every 10 MB, keep # only 14 latest ones. #
log4j.appender.FileLog = org.apache.log4j.RollingFileAppender log4j.appender.FileLog.MaxFileSize = 10MB log4j.appender.FileLog.MaxBackupIndex = 14 log4j.appender.FileLog.File = C:\\p\\jspwiki.log log4j.appender.FileLog.layout = org.apache.log4j.PatternLayout log4j.appender.FileLog.layout.ConversionPattern=%d [%t] %p %c %x - %m%n
Tomcat log via Apache
2004-03-23 10:56:08,781 [TP-Processor3] INFO JSPWiki Cib:CategorieFiches - Request for page 'CategorieFiches' from 80.8.202.225 by null
On ne voit que l'adresse IP.
We only have the IP adress
80.8.202.225
Change Apache log
cib-access.log
crawl6.googlebot.com - - [26/Mar/2004:08:41:11 +0100] "GET /JSPWiki/Wiki.jsp? page=ScottCardEnder HTTP/1.0" 200 18667
httpd.conf
# The following directives define some format nicknames for use with # a CustomLog directive (see below).
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# You need to enable mod_logio.c to use %I and %O
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
LogSerie
