Fitnesse 访问日志配置

1. 在build.xml中修改Finesse运行时的参数

 1 <target name="run" depends="compile, compile-bootstrap-less, retrieve" description="Start FitNesse from the command line">
 2         <ivy:cachepath pathid="standalone.classpath" conf="standalone"/>
 3         <java classname="fitnesseMain.FitNesseMain" fork="true" failonerror="true">
 4             <arg value="-o" />
 5             <arg value="-v" />
 6     <arg value="-l"/> //添加参数-l
 7         <arg value="E:\\fitnesse\\workspace\\fitnesse-master\\log"/>//添加日志输出目标目录
 8             <arg value="-p" />
 9             <arg value="${port}" />
10
11
12             <classpath>
13                 <path refid="standalone.classpath"/>
14                 <pathelement location="${classes.dir}"/>
15             </classpath>
16
17         </java>
18     </target>

2. 重新启动Fitnesse

3. 执行用例

4. 进入E:\fitnesse\workspace\fitnesse-master\log,在该目录下将会生成一个fitnesse20160708165006.log文件

内容如下:

 1 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:06 +0800] "" 400 2044
 2 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:06 +0800] "GET /FitNesse.FullReferenceGuide.UserGuide.AdministeringFitNesse.LogFiles HTTP/1.1" 200 9829
 3 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /FitNesse.UserGuide.TwoMinuteExample HTTP/1.1" 200 19862
 4 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/css/fitnesse_wiki.css HTTP/1.1" 200 4144
 5 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/javascript/fitnesse.js HTTP/1.1" 200 7326
 6 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/css/fitnesse_pages.css HTTP/1.1" 200 6119
 7 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/wysiwyg/wysiwyg.css HTTP/1.1" 200 4255
 8 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/bootstrap/js/respond.js HTTP/1.1" 200 9746
 9 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/javascript/mousetrap.min.js HTTP/1.1" 200 3850
10 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/bootstrap/js/bootstrap.js HTTP/1.1" 200 68954
11 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/javascript/jquery-1.11.3.min.js HTTP/1.1" 200 95957
12 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/bootstrap/css/fitnesse-bootstrap.css HTTP/1.1" 200 155256
13 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/images/fitnesse-logo-small.png HTTP/1.1" 200 10408
14 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:20 +0800] "GET /files/fitnesse/bootstrap/img/minus-sign.png HTTP/1.1" 200 1222
15 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /FitNesse.UserGuide.WritingAcceptanceTests.SliM.DecisionTable HTTP/1.1" 200 19214
16 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/css/fitnesse_wiki.css HTTP/1.1" 304 0
17 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/bootstrap/css/fitnesse-bootstrap.css HTTP/1.1" 304 0
18 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/javascript/jquery-1.11.3.min.js HTTP/1.1" 304 0
19 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/css/fitnesse_pages.css HTTP/1.1" 304 0
20 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/wysiwyg/wysiwyg.css HTTP/1.1" 304 0
21 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/javascript/fitnesse.js HTTP/1.1" 304 0
22 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/javascript/mousetrap.min.js HTTP/1.1" 304 0
23 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/bootstrap/js/respond.js HTTP/1.1" 304 0
24 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/bootstrap/js/bootstrap.js HTTP/1.1" 304 0
25 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/images/fitnesse-logo-small.png HTTP/1.1" 304 0
26 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:30 +0800] "GET /files/fitnesse/bootstrap/img/plus-sign.png HTTP/1.1" 200 1289
27 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/css/fitnesse_wiki.css HTTP/1.1" 304 0
28 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/css/fitnesse_pages.css HTTP/1.1" 304 0
29 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/bootstrap/css/fitnesse-bootstrap.css HTTP/1.1" 304 0
30 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/javascript/jquery-1.11.3.min.js HTTP/1.1" 304 0
31 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/wysiwyg/wysiwyg.css HTTP/1.1" 304 0
32 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/javascript/fitnesse.js HTTP/1.1" 304 0
33 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/bootstrap/js/respond.js HTTP/1.1" 304 0
34 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/bootstrap/js/bootstrap.js HTTP/1.1" 304 0
35 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:32 +0800] "GET /files/fitnesse/images/fitnesse-logo-small.png HTTP/1.1" 304 0
36 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:34 +0800] "GET /files/fitnesse/bootstrap/img/plus-sign.png HTTP/1.1" 304 0
37 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:35 +0800] "GET /files/fitnesse/images/exception.png HTTP/1.1" 200 3104
38 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:35 +0800] "GET /files/fitnesse/images/wrong.png HTTP/1.1" 200 3145
39 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:35 +0800] "GET /files/fitnesse/javascript/mousetrap.min.js HTTP/1.1" 304 0
40 0:0:0:0:0:0:0:1 - - [08/Jul/2016:16:50:35 +0800] "GET /FitNesse.UserGuide.WritingAcceptanceTests.SliM.DecisionTable?test HTTP/1.1" 200 23316  // 这里就记录着访问信息
时间: 2024-10-11 01:31:33

Fitnesse 访问日志配置的相关文章

Linux学习总结(三十五)lamp之访问日志配置

一 访问日志不记录静态文件访问信息 网站大多元素为静态文件,如图片.css.js等,记录这些访问信息对我们运维工作没有多大意义,如果一个站点访问量很大,那么一天就可以达到几GB.影响我们磁盘的工作效率,那么我们就可以配置虚拟主机限制记录这些信息.把虚拟主机配置文件改成如下: <VirtualHost *:80> DocumentRoot "/data/wwwroot/www.123.com" ServerName www.123.com ServerAlias 123.co

Apache(httpd)配置--用户认证,域名跳转和访问日志配置

一.用户认证 用户认证功能就是在用户访问网站的时候,需要输入用户名密码才能进行访问.一些比较好总要的站点和网站后台都会加上用户认证,以保证安全.实例:下面对zlinux.com站点来做一个全站的用户认证: 步骤1:编辑虚拟主机配置文件 [[email protected] ~]# vim /usr/local/apache2/conf/extra/httpd-vhosts.conf //在linuxtest.com虚拟主机下编辑添加以下内容 <VirtualHost *:80> Documen

nginx访问日志配置+日志切割+不记录静态文件日志+设置静态文件过期时间

nginx访问日志 查看nginx.conf文件 vim /usr/local/nginx/conf/nginx.conf 中间有一行是定义log的格式 log_format combined_realip '$remote_addr $http_x_forwarded_for [$time_local]' ' $host "$request_uri" $status' ' "$http_referer" "$http_user_agent"';

Linux学习总结(四十一)nginx 访问日志配置,网页缓存有效期配置

我们在学些apache的时候已经接触过访问日志,还记得日志格式在哪里定义吗,在httpd的主配置文件中,/usr/lcoal/apache2.4/conf/httpd.conf 搜索LogFormat 就可以查看到,系统给了我们两种格式,combined 和common 我们选择使用了combined ,它记录的信息更全面.接下来我们在虚拟主机配置文件中定义了日志所在路径及类型./usr/local/apache2.4/conf/extra/httpd-vhosts.conf 1访问日志 在ng

gunicorn 访问日志配置与项目启动

gunicorn_config.py 文件的使用案例 # coding=utf-8 import sys import os import multiprocessing path_of_current_file = os.path.abspath(__file__) path_of_current_dir = os.path.split(path_of_current_file)[0] _file_name = os.path.basename(__file__) sys.path.inser

Nginx 访问日志配置

Nginx 会把每个用户访问网站的日志信息记录到指定的日志文件里,此功能由 ngx_http_log_module 日志模块负责. 语法: log_format name string ...; //定义日志格式,log_format是固定关键字,name是日志格式的名字,string是日志变量 access_log file name; //应用日志格式,access_log是固定关键字,file是存放日志的路径,name是应用哪个名字的日志格式 日志变量: $remote_addr :记录访

ELKStack实时分析Haproxy访问日志配置

1.Haproxy配置日志规则 在/etc/haproxy/haproxy.conf的frontend下增加 option httplog option logasap log LogServerIP local5 capture request header Host len 40 capture request header X-Forwarded-For len 50 #capture request header Accept-Language len 50 capture reques

ELK+syslog+nginx访问日志收集+分词处理

一.nginx访问日志配置: 1.日志格式配置: log_format json '{"@timestamp":"$time_iso8601",' '"host":"$server_addr",' '"clientip":"$remote_addr",' '"size":$body_bytes_sent,' '"xff":"$http_x

LAMP-Apache访问日志

访问日志,记录了网站访问者的信息.在一些特殊情况,我们可以通过访问日志提取出我们需要的信息.如:网站受攻击时发起源.统计访问用户大数据分布等. 一.网站访问日志 1.访问日志配置 [[email protected] ~]# vi /usr/local/apache2.4/conf/extra/httpd-vhosts.conf <VirtualHost *:80>     DocumentRoot "/data/www/abc.com"     ServerName ab